summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-04 19:20:30 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-04 19:20:30 -0700
commitaff5591ee445bccef79b89557840545ba4379d2c (patch)
tree43702c0741ddcec34a1cc8aa482b860d33269875 /tasks
parent760e8b596f2be5b4e77bd076d9fece38dba1b723 (diff)
downloadchef-aff5591ee445bccef79b89557840545ba4379d2c.tar.gz
Speed up our bundle installs by always running 3 jobsfaster_bundler_installs
multi-job bundle install is the default in the next release, but for now we should make sure we set it everywhere. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'tasks')
-rwxr-xr-xtasks/bin/run_external_test2
-rw-r--r--tasks/rspec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/tasks/bin/run_external_test b/tasks/bin/run_external_test
index 2eb45c8aab..16f21d8e37 100755
--- a/tasks/bin/run_external_test
+++ b/tasks/bin/run_external_test
@@ -32,7 +32,7 @@ Dir.mktmpdir("chef-external-test") do |dir|
Dir.chdir(dir) do
shell_out!("git checkout #{git_thing}", live_stream: STDOUT)
Bundler.with_unbundled_env do
- shell_out!("bundle install", live_stream: STDOUT, env: env)
+ shell_out!("bundle install --jobs=3 --retry=3", live_stream: STDOUT, env: env)
shell_out!("bundle exec #{ARGV.join(" ")}", live_stream: STDOUT, env: env)
end
end
diff --git a/tasks/rspec.rb b/tasks/rspec.rb
index 99b3563788..647efd647a 100644
--- a/tasks/rspec.rb
+++ b/tasks/rspec.rb
@@ -30,7 +30,7 @@ begin
%w{chef-utils chef-config}.each do |gem|
Dir.chdir(gem) do
Bundler.with_unbundled_env do
- sh("bundle install")
+ sh("bundle install --jobs=3 --retry=3")
sh("bundle exec rake spec")
end
end