Skip to content

Commit a8e5a97

Browse files
committed
Update Rubygems only for JRuby and MRI 2.3/2.4
Attempting to update Rubygems for older versions of Ruby fails.
1 parent a0de4db commit a8e5a97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ before_script:
2121
- git config --global user.name "Travis CI"
2222

2323
before_install:
24-
- gem update --system
24+
- '[[ "$TRAVIS_RUBY_VERSION" =~ "^jruby|^2.3|^2.4" ]] && gem update --system || true'
2525

2626
script:
2727
- bundle exec rspec

0 commit comments

Comments
 (0)