Skip to content

Commit cb46d88

Browse files
committed
.travis.yml - fix RubyGems update code
1 parent 4f8f2da commit cb46d88

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
language: ruby
22
cache: bundler
33
before_install:
4-
- gem update --system 2.7.7
5-
- gem install bundler -v 1.16.2
4+
# rubygems 2.7.8 and greater include bundler
5+
- |
6+
rv="$(ruby -e 'STDOUT.write RUBY_VERSION')";
7+
if [ "$rv" \< "2.3" ]; then gem update --system 2.7.10 --no-document
8+
elif [ "$rv" \< "2.7" ]; then gem update --system --no-document --conservative
9+
fi
10+
- ruby -v && gem --version && bundle version
11+
612
addons:
713
apt:
814
packages:

0 commit comments

Comments
 (0)