sudo: false
language: ruby
cache: bundler
rvm:
  - 2.5.5
# Get the headless webkit running on Travis
# http://stackoverflow.com/questions/11448806/headless-gem-webkit-server-cannot-connect-to-x-server
before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
before_script:
  - RAILS_ENV=test bundle exec rake db:create
  - RAILS_ENV=test bundle exec rake db:migrate --trace
addons:
  postgresql: "9.3"
  chrome: stable

sudo: false
language: ruby
cache: bundler
bundler_args: --without production
rvm:
  - 2.5.5
before_install:
  # Get the headless webkit running on Travis
  # http://stackoverflow.com/questions/11448806/headless-gem-webkit-server-cannot-connect-to-x-server
  - "echo 'gem: --no-document' > ~/.gemrc"
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  # To keep using bundler < 2.0
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'
before_script:
  - RAILS_ENV=test bundle exec rake db:create
  - RAILS_ENV=test bundle exec rake db:migrate --trace
addons:
  postgresql: "9.3"
  chrome: stable

Add bundler < 2 to Travis config
Add bundler < 2 to Travis config
