0
Here is a Travis.yml of mine that is working normally:
language: ruby
cache: bundler
rvm:
- 2.4.5
before_install:
- gem update --system
- gem install bundler
env:
global:
- RACK_ENV=test
- RAILS_ENV=test
- trecho omidído
script:
- bundle install --jobs=3 --retry=3
- RAILS_ENV=test bundle exec rake db:schema:load --trace
- bundle exec rake db:test:prepare
- bundle exec rspec
Try to rotate the Gem update --system before installing the bundler. Also check if you need to specify the bundler version. Another thing: cache: bundler in configuration ;)