system-config/modules/openstack_project/files/jenkins_job_builder/config/chef-jobs.yaml
galstrom21 18de70ab58 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
2014-04-26 13:56:40 -05:00

60 lines
1.2 KiB
YAML

- job-template:
name: 'gate-{name}-chef-unit'
node: '{node}'
builders:
- revoke-sudo
- gerrit-git-prep
- chef-bundler-prep
- chef-berkshelf-prep
- chef-cookbook-chefspec
publishers:
- console-log
- job-template:
name: 'gate-{name}-chef-lint'
node: '{node}'
builders:
- revoke-sudo
- gerrit-git-prep
- chef-bundler-prep
- chef-cookbook-foodcritic
publishers:
- console-log
- job-template:
name: 'gate-{name}-chef-style'
node: '{node}'
builders:
- revoke-sudo
- gerrit-git-prep
- chef-bundler-prep
- chef-cookbook-rubocop
publishers:
- console-log
- job:
name: gate-openstack-chef-repo
node: bare-precise
builders:
- revoke-sudo
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
mkdir -p .cookbooks .bundle
ruby1.9.1 /usr/bin/bundle config --global jobs $(nproc)
ruby1.9.1 /usr/bin/bundle install --path=.bundle
# Validates cookbooks
ruby1.9.1 /usr/bin/bundle exec berks install --path=.cookbooks
# Validates roles
ruby1.9.1 /usr/bin/bundle exec spiceweasel infrastructure.yml --debug
publishers:
- console-log