Adds Chef style checking job

Adds a macro that fires off tailor to check cookbooks
Chef and Ruby style.

See https://review.openstack.org/#/c/30827 for some
more information about the use of tailor against the
Chef cookbook repositories.

Marks the OpenStack Compute cookbook for gating with
this new job.

Change-Id: Ib5b3d6548749ddc1107a70b462f7432dde672410
Reviewed-on: https://review.openstack.org/30921
Reviewed-by: John Dewey <john@dewey.ws>
Reviewed-by: craigtracey <craigtracey@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
This commit is contained in:
Jay Pipes 2013-05-29 13:46:49 -04:00 committed by Jenkins
parent 12106d198e
commit ba307ea0f5
4 changed files with 25 additions and 0 deletions

View File

@ -27,3 +27,18 @@
publishers:
- console-log
- job-template:
name: 'gate-{name}-chef-style'
node: '{node}'
triggers:
- zuul
builders:
- gerrit-git-prep
- chef-cookbook-prep
- chef-cookbook-style
publishers:
- console-log

View File

@ -89,6 +89,13 @@
exit 1
fi
- builder:
name: chef-cookbook-style
builders:
- shell: |
COOKBOOK=$(awk '/^name/ {print $NF}' metadata.rb |tr -d \"\')
ruby1.9.1 /usr/bin/bundle exec tailor
- builder:
name: chef-cookbook-lint
builders:

View File

@ -964,6 +964,7 @@
jobs:
- gate-{name}-chef-lint
- gate-{name}-chef-style
- gate-{name}-chef-unit
- project:

View File

@ -1852,9 +1852,11 @@ projects:
- name: stackforge/cookbook-openstack-compute
check:
- gate-cookbook-openstack-compute-chef-lint
- gate-cookbook-openstack-compute-chef-style
- gate-cookbook-openstack-compute-chef-unit
gate:
- gate-cookbook-openstack-compute-chef-lint
- gate-cookbook-openstack-compute-chef-style
- gate-cookbook-openstack-compute-chef-unit
- name: stackforge/cookbook-openstack-dashboard