1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-02-01 01:37:12 +00:00

Explicitly install Bundler < 2.0 for older Ruby versions on Travis CI

This commit is contained in:
Holger Just 2019-01-11 11:21:04 +01:00
parent d53679cb83
commit 8788c3a75e

View File

@ -43,7 +43,15 @@ matrix:
- rvm: jruby-head
before_install:
- "gem install bundler"
# Bundler 2.0 requires at least Ruby 2.3. We need to explicitly install an
# older version of bundler for older Ruby versions since they can't / won't
# check their required versions on their own.
- |
if [[ "$(rvm current)" =~ ^(ruby-2\.[012]|jruby-9\.0) ]]; then
gem install bundler -v '< 2.0'
else
gem install bundler
fi
script:
- bundle exec rspec