diff --git a/.travis.yml b/.travis.yml index 85b1f24bca..1672d24789 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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;