summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorTom Duffield <tom@chef.io>2017-01-23 16:50:24 -0600
committerTom Duffield <tom@chef.io>2017-01-23 17:32:30 -0600
commit144cfa2aad508ca8b014553f63b50e30f37be608 (patch)
treed18292d5efbf81b309051dc466a1b1730a4fe166 /appveyor.yml
parent3cef3682150fa1338e6ae12d6ebdc6c417198b6d (diff)
downloadchef-144cfa2aad508ca8b014553f63b50e30f37be608.tar.gz
Force version constraints in appveyor
Signed-off-by: Tom Duffield <tom@chef.io>
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 08756d98ad..e3bf174e01 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -20,11 +20,12 @@ install:
- systeminfo
- winrm quickconfig -q
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
+ - ps: $env:RUBYGEMS_VERSION=$(findstr rubygems omnibus_overrides.rb | %{ $_.split(" ")[3] })
+ - ps: $env:BUNDLER_VERSION=$(findstr bundler omnibus_overrides.rb | %{ $_.split(" ")[3] })
- echo %PATH%
- ruby --version
- - gem update --system || gem update --system || gem update --system
- - gem install bundler --quiet --no-ri --no-rdoc || gem install bundler --quiet --no-ri --no-rdoc || gem install bundler --quiet --no-ri --no-rdoc
- - update_rubygems
+ - gem update --system %RUBYGEMS_VERSION% || gem update --system %RUBYGEMS_VERSION% || gem update --system %RUBYGEMS_VERSION%
+ - gem install bundler -v %BUNDLER_VERSION% --quiet --no-ri --no-rdoc || gem install bundler -v %BUNDLER_VERSION% --quiet --no-ri --no-rdoc || gem install bundler -v %BUNDLER_VERSION% --quiet --no-ri --no-rdoc
- gem --version
- bundler --version
- SET BUNDLE_IGNORE_CONFIG=true