
For berkshelf 3.x and openstack cookbooks, we need precise and ruby 1.9.1. Default for precise is ruby 1.8. Ruby 1.9 is installed on the precise images but it's not set to the default. Use update-alternatives to set Ruby 1.9.1 as the default. Change-Id: I464b3e44a0ba860129f22f306c63e415fd4925ff Closes-Bug: #1357439
78 lines
1.4 KiB
YAML
78 lines
1.4 KiB
YAML
- job-template:
|
|
name: 'gate-{name}-chef-unit'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 60
|
|
- timestamps
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- ruby-191-prep
|
|
- chef-bundler-prep
|
|
- revoke-sudo
|
|
- chef-berkshelf-prep
|
|
- chef-cookbook-chefspec
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-chef-lint'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 60
|
|
- timestamps
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- ruby-191-prep
|
|
- chef-bundler-prep
|
|
- revoke-sudo
|
|
- chef-berkshelf-prep
|
|
- chef-cookbook-foodcritic
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-chef-style'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 60
|
|
- timestamps
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- ruby-191-prep
|
|
- chef-bundler-prep
|
|
- revoke-sudo
|
|
- chef-berkshelf-prep
|
|
- chef-cookbook-rubocop
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job:
|
|
name: gate-openstack-chef-repo
|
|
node: 'bare-precise || bare-trusty'
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- ruby-191-prep
|
|
- chef-bundler-prep
|
|
- revoke-sudo
|
|
- chef-berkshelf-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
# Validates roles
|
|
bundle exec spiceweasel infrastructure.yml --debug
|
|
|
|
publishers:
|
|
- console-log
|