language: ruby
rvm:
  - 2.2.10
  - 2.3.8
  - 2.4.5
  - 2.5.3
before_script:
  - git config --global user.email "continuous-integration@nestacms.com"
  - git config --global user.name "Nesta CI"
script: bundle exec rake test
env:
  - REPORTER=default

language: ruby
rvm:
  - 2.2.10
  - 2.3.8
  - 2.4.5
  - 2.5.3
before_install:
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'
before_script:
  - git config --global user.email "continuous-integration@nestacms.com"
  - git config --global user.name "Nesta CI"
script: bundle exec rake test
env:
  - REPORTER=default

Configure Travis to use bundler 1.x
Configure Travis to use bundler 1.x

You might be thinking "Why not use Bundler 2?"

Because Bundler 2 doesn't work on Ruby 2.2, and Nesta is still running
on some sites that haven't yet been upgraded to Ruby 2.3 or above.

So for the moment, Bundler 1.x is fine. Note that Travis still defaults
to using Bundler 1.

See this page in the Travis docs for more details on the commands added
in this patch:

https://docs.travis-ci.com/user/languages/ruby/#bundler-20
