summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-01-23 16:02:06 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2017-01-23 18:11:50 -0800
commit89dd6b0a94574d007f0c5480d67103c2a0410a29 (patch)
treed15649b3d8d023d96f3a47143b8d2155ca0c4b4c
parent424a783adf3bc27a10553b8655b7bf82fce053bc (diff)
downloadchef-89dd6b0a94574d007f0c5480d67103c2a0410a29.tar.gz
fix the bundler pinning
- remove all versions of the gem before installing the one we want - ensure that if the travis version is more recent that we don't pick it up - also add some debugging output of the versions afterwards Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--.travis.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 5460516710..ed7fffc22b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,7 +5,11 @@ cache: bundler
# Early warning system to catch if Rubygems breaks something
before_install:
- gem update --system $(grep rubygems omnibus_overrides.rb | cut -d'"' -f2)
+ - gem --version
+ - gem uninstall bundler -a -x
+ - rvm @global do gem uninstall bundler -a -x
- gem install bundler -v $(grep bundler omnibus_overrides.rb | cut -d'"' -f2)
+ - bundle --version
- rm -f .bundle/config
bundler_args: --without changelog development docgen guard maintenance omnibus_package tools aix bsd mac_os_x solaris windows --frozen
@@ -81,6 +85,8 @@ matrix:
# The chefspec tests + bundler cache + "gem update --system" interact badly :/
# (Cucumber doesn't start.)
before_install:
+ - gem uninstall bundler -a -x
+ - rvm @global do gem uninstall bundler -a -x
- gem install bundler -v $(grep bundler omnibus_overrides.rb | cut -d'"' -f2)
- bundle config --local without server:docgen:maintenance:omnibus_package:development:ruby_prof:pry
script: tasks/bin/run_external_test $TEST_GEM rake