Steve Baker 057398f8fa check-heat-dsvm-functional pre/post hooks
This change calls pre_test_hook.sh and post_test_hook.sh
in the heat source tree.
(related change I174429c16bb606c5c325ee8b62c6e600ea77a6e6)

This will have the side-effect of fixing the job check-heat-dsvm-functional
since post_test_hook.sh will call tox with sudo.

Change-Id: I6339eb82649fa6770e8da6c2b4d01ba58028d23a
2014-08-28 11:56:00 +12:00

77 lines
2.1 KiB
YAML

- job:
name: gate-heat-templates-dsvm
node: 'devstack-precise || devstack-trusty'
wrappers:
- build-timeout:
timeout: 120
- 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
- job-template:
name: '{pipeline}-heat-dsvm-functional{branch-designator}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 65
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_EXERCISES=0
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function pre_test_hook {{
cd /opt/stack/new/heat/heat_integrationtests
./pre_test_hook.sh
}}
export -f pre_test_hook
function post_test_hook {{
cd /opt/stack/new/heat/heat_integrationtests
./post_test_hook.sh
}}
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