language: ruby
cache: bundler

rvm:
  - 2.3.0
  - 2.3.3
  - 2.4.0
  - 2.4.4
  - 2.5.0
  - 2.5.3

gemfile:
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile

before_install: 'gem install bundler'
script: 'bundle exec rake'

notifications:
  email:
    on_failure: change
    on_success: never

language: ruby
cache: bundler

env:
  global:
    - CC_TEST_REPORTER_ID=6dc7db591131b55839297349c4a843ee7d7d9b28731c6bb4f1db9d42fa86c7b6

rvm:
  - 2.3.0
  - 2.3.3
  - 2.4.0
  - 2.4.4
  - 2.5.0
  - 2.5.3

gemfile:
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile

before_install: 'gem install bundler'

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

notifications:
  email:
    on_failure: change
    on_success: never

Test for codeclimate code coverage uploads. Might clash with multiple ruby/rails versions.
Test for codeclimate code coverage uploads. Might clash with multiple ruby/rails versions.
