Skip to content

Commit 007eeea

Browse files
committed
Try to fix Travis for old Ruby versions
Inspired of tzinfo/tzinfo@ea78810
1 parent e506037 commit 007eeea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
sudo: false
22
language: ruby
33
before_install:
4-
- gem install bundler
4+
- if [[ $TRAVIS_RUBY_VERSION =~ ^(1|2\.[012]|jruby-1)\. ]]; then gem install rubygems-update --version '~> 2.7' --no-document && update_rubygems; elif [[ ! $TRAVIS_RUBY_VERSION =~ ^truffleruby- ]]; then gem update --system; fi
5+
- gem --version
6+
- if [[ $TRAVIS_RUBY_VERSION =~ ^(1|2\.[012]|jruby-1)\. ]]; then gem install bundler --version '~> 1.17'; else gem install bundler; fi
7+
- bundle --version
58
notifications:
69
email:
710

0 commit comments

Comments
 (0)