language: ruby
before_install: gem update --system
services:
- mongodb
rvm:
  - "2.3.5"
  - "2.4.2"
  - "2.5.0"
gemfile:
  - "gemfiles/rails4.2.gemfile"
  - "gemfiles/rails5.0.gemfile"
  - "gemfiles/rails5.1.gemfile"
  - "gemfiles/rails5.2.gemfile"
env:
  - BACKEND=mongoid
  - BACKEND=active_record

language: ruby
before_install:
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'
services:
  - mongodb
rvm:
  - "2.3.5"
  - "2.4.2"
  - "2.5.0"
gemfile:
  - "gemfiles/rails4.2.gemfile"
  - "gemfiles/rails5.0.gemfile"
  - "gemfiles/rails5.1.gemfile"
  - "gemfiles/rails5.2.gemfile"
env:
  - BACKEND=mongoid
  - BACKEND=active_record

Downgrade to Bundler 1 on Travis
Downgrade to Bundler 1 on Travis
