Skip to content

Commit

Permalink
Set rubygems and bundler version for rails 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDaugherty committed Feb 4, 2019
1 parent 01279b9 commit 5612121
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
sudo: false
language: ruby
cache: bundler
before_install:
# Since Rails 4.2 only supports rubygems < 2, we must install an 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"
fi
notifications:
webhooks:
# With COVERALLS_PARALLEL, coverage information sent to coveralls will not be processed until
Expand Down

0 comments on commit 5612121

Please sign in to comment.