Skip to content

Commit

Permalink
Avoid jruby warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aliismayilov committed Sep 10, 2020
1 parent 5c89ff8 commit 33002a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -90,6 +90,8 @@ matrix:
gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
fast_finish: true
before_install:
# Avoid "Warning: the --client flag is deprecated and has no effect most JVMs"
- unset _JAVA_OPTIONS
# install older versions of rubygems and bundler only on Ruby < 2.7
- if [ `echo "${TRAVIS_RUBY_VERSION:0:3} < 2.7" | bc` == 1 ]; then gem i rubygems-update -v '<3' && update_rubygems; fi; # https://github.com/travis-ci/travis-ci/issues/8974
- if [ `echo "${TRAVIS_RUBY_VERSION:0:3} < 2.7" | bc` == 1 ]; then gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true; fi;
Expand Down

0 comments on commit 33002a6

Please sign in to comment.