sudo: false env: global: - CC_TEST_REPORTER_ID=31e005b4d2d190f26dcb055d5ac3a9ccfd492da2c335e5abfafbd438488f8b08 addons: postgresql: "9.6" services: - postgresql language: ruby rvm: - 2.6 - 2.5 - 2.4 - 2.3 gemfile: - gemfiles/rails_4.gemfile - gemfiles/rails_5.0.gemfile - gemfiles/rails_5.1.gemfile - gemfiles/rails_5.2.gemfile before_install: - gem install bundler - psql -c 'create database alarmable;' -U postgres before_script: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build script: bundle exec rake after_script: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT