Skip to content

Commit

Permalink
Quit mucking with rubygems and bundler version
Browse files Browse the repository at this point in the history
Use the versions that come with the version of Ruby we're testing.
  • Loading branch information
RobinDaugherty committed Feb 3, 2019
1 parent 43cea4d commit 01279b9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
sudo: false
language: ruby
cache: bundler
before_install:
# Since rubygems 3.0+ only supports Ruby 2.3+, we must install the old version for older Rubies.
# Since Rails 4.2 only supports rubygems < 2, we must install an even older version for it.
- >
if [[ "$BUNDLE_GEMFILE" =~ "rails42" ]]; then
rvm @global do gem install rubygems-update -v '<2'
update_rubygems
rvm @global do gem uninstall bundler --force --executables
rvm @global do gem install bundler -v "~> 1.3"
elif [[ `ruby -v` == *"ruby 2.2"* ]]; then
rvm @global do gem install rubygems-update -v '<3'
update_rubygems
rvm @global do gem uninstall bundler --force --executables
rvm @global do gem install bundler
else
rvm @global do gem update --system
rvm @global do gem uninstall bundler --force --executables
rvm @global do gem install bundler
fi
notifications:
webhooks:
# With COVERALLS_PARALLEL, coverage information sent to coveralls will not be processed until
Expand Down

0 comments on commit 01279b9

Please sign in to comment.