diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-08-04 19:20:30 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-08-04 19:20:30 -0700 |
commit | aff5591ee445bccef79b89557840545ba4379d2c (patch) | |
tree | 43702c0741ddcec34a1cc8aa482b860d33269875 /habitat | |
parent | 760e8b596f2be5b4e77bd076d9fece38dba1b723 (diff) | |
download | chef-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 'habitat')
-rw-r--r-- | habitat/plan.ps1 | 2 | ||||
-rw-r--r-- | habitat/plan.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1 index 2b21ae889c..8269e436a5 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -80,7 +80,7 @@ function Invoke-Build { $env:_BUNDER_WINDOWS_DLLS_COPIED = "1" Write-BuildLine " ** Using bundler to retrieve the Ruby dependencies" - bundle install + bundle install --jobs=3 --retry=3 if (-not $?) { throw "unable to install gem dependencies" } Write-BuildLine " ** 'rake install' any gem sourced as a git reference so they'll look like regular gems." foreach($git_gem in (Get-ChildItem "$env:GEM_HOME/bundler/gems")) { diff --git a/habitat/plan.sh b/habitat/plan.sh index 967cdd334e..64f424dfac 100644 --- a/habitat/plan.sh +++ b/habitat/plan.sh @@ -93,7 +93,7 @@ do_prepare() { do_build() { ( cd "$CACHE_PATH" || exit_with "unable to enter hab-cache directory" 1 build_line "Installing gem dependencies ..." - bundle install + bundle install --jobs=3 --retry=3 build_line "Installing this project's gems ..." bundle exec rake install for gem in $GEM_HOME/bundler/gems/*; do |