Configuring bundler to use multiple cpus/cores
This will speed up tasks like bundle install, letting it use multiple procs/cores instead of being single threaded. Change-Id: I7ec7ab4d09176d3b6c0280b9b64f76af432c40c9
This commit is contained in:
parent
13590a6239
commit
18de70ab58
@ -48,6 +48,7 @@
|
|||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
mkdir -p .cookbooks .bundle
|
mkdir -p .cookbooks .bundle
|
||||||
|
ruby1.9.1 /usr/bin/bundle config --global jobs $(nproc)
|
||||||
ruby1.9.1 /usr/bin/bundle install --path=.bundle
|
ruby1.9.1 /usr/bin/bundle install --path=.bundle
|
||||||
# Validates cookbooks
|
# Validates cookbooks
|
||||||
ruby1.9.1 /usr/bin/bundle exec berks install --path=.cookbooks
|
ruby1.9.1 /usr/bin/bundle exec berks install --path=.cookbooks
|
||||||
|
@ -116,6 +116,7 @@
|
|||||||
builders:
|
builders:
|
||||||
- shell: |
|
- shell: |
|
||||||
mkdir -p .bundle
|
mkdir -p .bundle
|
||||||
|
ruby1.9.1 /usr/bin/bundle config --global jobs $(nproc)
|
||||||
ruby1.9.1 /usr/bin/bundle install --path=.bundle
|
ruby1.9.1 /usr/bin/bundle install --path=.bundle
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user