language: ruby
script: "bundle exec rake test:units"
sudo: false
cache: bundler

rvm:
- 2.5
- 2.4
- 2.3
- 2.2

gemfile:
- Gemfile.rails52
- Gemfile.rails51
- Gemfile.rails50
- Gemfile.rails42

matrix:
  include:
    - rvm: 2.1
      gemfile: Gemfile.rails42

notifications:
  email:
    on_success: never
    on_failure: always

language: ruby
script: "bundle exec rake test:units"
sudo: false
cache: bundler
before_install:
  # https://github.com/travis-ci/travis-ci/issues/8978#issuecomment-354036443
  - gem update --system
  - gem install bundler

rvm:
- 2.5
- 2.4
- 2.3
- 2.2

gemfile:
- Gemfile.rails52
- Gemfile.rails51
- Gemfile.rails50
- Gemfile.rails42

matrix:
  include:
    - rvm: 2.1
      gemfile: Gemfile.rails42

notifications:
  email:
    on_success: never
    on_failure: always

Fix Travis build for Ruby 2.5
Fix Travis build for Ruby 2.5

https://github.com/travis-ci/travis-ci/issues/8978#issuecomment-354036443