59 lines
2.1 KiB
YAML
59 lines
2.1 KiB
YAML
- job-template:
|
|
name: 'gate-tempest-dsvm-monasca-transform-{pyver}-functional{suffix}'
|
|
|
|
node: ubuntu-xenial
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 130
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- local_conf:
|
|
conf: |
|
|
[[local|localrc]]
|
|
enable_plugin monasca-api git://git.openstack.org/openstack/monasca-api
|
|
enable_plugin monasca-transform git://git.openstack.org/openstack/monasca-transform
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
if [ "{pyver}" == "python35" ]; then
|
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
|
else
|
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
|
fi
|
|
|
|
export ENABLED_SERVICES=tempest
|
|
export PROJECTS="openstack/monasca-transform $PROJECTS"
|
|
export PROJECTS="openstack/monasca-api $PROJECTS"
|
|
export PROJECTS="openstack/monasca-persister $PROJECTS"
|
|
export PROJECTS="openstack/monasca-common $PROJECTS"
|
|
export PROJECTS="openstack/monasca-agent $PROJECTS"
|
|
export PROJECTS="openstack/monasca-notification $PROJECTS"
|
|
export PROJECTS="openstack/monasca-thresh $PROJECTS"
|
|
export PROJECTS="openstack/monasca-statsd $PROJECTS"
|
|
export PROJECTS="openstack/python-monascaclient $PROJECTS"
|
|
export PROJECTS="openstack/monasca-grafana-datasource $PROJECTS"
|
|
export PROJECTS="openstack/monasca-ui $PROJECTS"
|
|
|
|
function pre_test_hook {{
|
|
source $BASE/new/monasca-transform/devstack/pre_test_hook.sh
|
|
}}
|
|
export -f pre_test_hook
|
|
|
|
function post_test_hook {{
|
|
# Configure and run tempest on monasca-transform installation
|
|
source $BASE/new/monasca-transform/devstack/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 |