Skip to content

Commit

Permalink
Fix broken Travis builds
Browse files Browse the repository at this point in the history
Recent deprecations in RubyGems and version constraints in Bundler 2.0.0
require us to be more explicit in our build steps in order for builds to
pass. Skip builds on certain versions and specify an explicit constraint
when installing Bundler.
  • Loading branch information
sds committed Jan 10, 2019
1 parent c005912 commit 327e6ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ cache: bundler

before_install:
- "echo 'gem: --no-document' > ~/.gemrc"
- gem update --system
- gem install bundler # Necessary to fix 1.9.3
# RubyGems update is supported for Ruby 2.3 and later
- if $(ruby -e "puts Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.3')"); then gem update --system; fi
- gem install bundler --version '~> 1.17'

env:
global:
Expand Down

0 comments on commit 327e6ef

Please sign in to comment.