summaryrefslogtreecommitdiff
path: root/tasks/dependencies.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-04-25 19:04:04 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-04-25 20:54:33 -0700
commit6b8130ad431fd61ce865734e7172efc3e0eba672 (patch)
tree20fd804551035dee4972e8faf3469617a39e0c24 /tasks/dependencies.rb
parent71863634ac50dbfb2601de536828b779517066ae (diff)
downloadchef-6b8130ad431fd61ce865734e7172efc3e0eba672.tar.gz
major testing overhaullcg/simplify-external-tests
See the PR comments for more philosophical background. This simplifies the external tests. The major feature here is that halite, poise, chefspec, etc are removed from the Gemfile.lock and the transitive Gemfile splicing is gone from the external tests. We're back to simply tracking master on external projects and bundle installing without locks and going red if the break. Those external projects should all similarly track master of chef/chef to reduce the possibility that they break us here. This also bumps bundler to 1.14.x and unblocks us there. It continues to simplify our use of bundler to be more mainstream and less impenetrable. There was some crazy shit that I found where I had to remove env vars like BUNDLE_ENABLE_TRAMPOLINE and the BUNDLE_IGNORE_CONFIG and BUNDLE_FROZEN env vars in appveyor along with the .bundle/config frozen setting were necessary to unbreak appveyor. We seem to have gotten very far afield of standard bundler usage and it was breaking in strange to debug ways. Oddly enough this exposed weird errors in the chef-config/spec/units/fips_spec.rb tests where we need to require the "win32/registry" file there now even though I can't figure out why that broke or how it was working previously. Also, adding x64-mingw32 to x86-mingw32 was necessary to test in appveyor on 64-bit windows (I tried universal-mingw32 and that failed) which seems obvious and is another case that I don't understand how it was working in bundler 1.12.x Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'tasks/dependencies.rb')
-rw-r--r--tasks/dependencies.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/dependencies.rb b/tasks/dependencies.rb
index 2118644b12..e6e11c0235 100644
--- a/tasks/dependencies.rb
+++ b/tasks/dependencies.rb
@@ -51,10 +51,10 @@ namespace :dependencies do
task task_name do
Dir.chdir(dir) do
Bundler.with_clean_env do
- sh "bundle config --local frozen '0'"
+ rm_f "#{dir}/Gemfile.lock"
sh "bundle lock --update --add-platform ruby"
+ sh "bundle lock --update --add-platform x64-mingw32"
sh "bundle lock --update --add-platform x86-mingw32"
- sh "bundle config --local frozen '1'"
end
end
end