Add a new job for heat-templates

This adds a new job that fires a devstack and then call a script
validating all the templates in heat-templates.

Change-Id: Ica4af76830de3370a06d3786c79af6b79d980ed6
This commit is contained in:
Thomas Herve 2014-03-28 15:31:06 +01:00
parent 38bffa4ea3
commit 019b881df9
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,32 @@
- job:
name: gate-heat-templates-dsvm
node: devstack-precise
wrappers:
- timeout:
timeout: 120
fail: true
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_EXERCISES=0
export PROJECTS="openstack/heat-templates $PROJECTS"
function post_test_hook {{
source $BASE/new/devstack/openrc && \
python $BASE/new/heat-templates/tools/validate-templates $BASE/new/heat-templates
}}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log

View File

@ -556,6 +556,8 @@ jobs:
voting: false
- name: gate-cliff-requirements
voting: false
- name: gate-heat-templates-dsvm
voting: false
# The project list is grouped by type of project, and within each
# group, projects are sorted (mostly) alphabetically.
@ -1627,7 +1629,7 @@ projects:
- name: openstack/heat-templates
check:
- noop
- gate-heat-templates-dsvm
gate:
- noop