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:
parent
d53679cb83
commit
8788c3a75e
10
.travis.yml
10
.travis.yml
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user