-
Notifications
You must be signed in to change notification settings - Fork 29
Description
When running travis CI against a ruby version that isn't preinstalled, the bundler gem fails to install. For example when using ruby-2.3.7: https://travis-ci.org/puppetlabs/puppet/jobs/474973328#L466
We've worked around the issue in puppet itself, but it also affects all puppet module CI pipelines,
such as https://travis-ci.com/puppetlabs/puppetlabs-cron_core/jobs/168691623#L464. It also affects customers that have written modules.
The issue is caused by the new bundler 2 release combined with travis not constraining the bundler version in gem install bundler. If you change that to gem install bundler -v '< 2' for pre-2.5 rubies, then it should work.
Note bundler 2.0.0 originally required rubygems 3, but that was relaxed to rubygems 2.5.0 in bundler 2.0.1. See https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html for more info.
Can you update the travis rubies to install a bundler version that is compatible with the ruby it's being installed into?