Adjust anvil gate/check jobs to test venv and rpm building

This adds a custom job template set that contains a script
to test (on centos6/centos7) the rpm building and a venv test
script that should run on trusty that tests anvils capability
to build venvs (and rpms) from the various openstack components.

Change-Id: I100eaff3542eb124e9a5d92e2d7a20ba0ffc75c4
This commit is contained in:
Joshua Harlow 2015-07-22 11:19:19 -07:00 committed by Joshua Harlow
parent 802c509eb3
commit f059fb06c7
3 changed files with 103 additions and 0 deletions

View File

@ -0,0 +1,85 @@
- job-template:
name: 'gate-anvil-rpms-{node}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export LOG_COLOR=0
# TODO: Change this later.
origin_file="kilo-2015.1.0.yaml"
echo "--------------------------"
echo "Bootstrapping anvil (rpms)"
echo "--------------------------"
sudo VERBOSE=1 ./smithy --bootstrap
echo "---------"
echo "Preparing"
echo "---------"
./smithy -a prepare -o conf/origins/$origin_file \
--tee-file ./prepare.txt -j1 -v
echo "--------"
echo "Building"
echo "--------"
./smithy -a build -o conf/origins/$origin_file \
--tee-file ./build.txt -j1 -v
echo ":)"
publishers:
- zuul-swift-upload-console-log
- job-template:
name: 'gate-anvil-venv-{node}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export LOG_COLOR=0
# TODO: Change this later.
origin_file="kilo-venv-2015.1.0.yaml"
echo "--------------------------"
echo "Bootstrapping anvil (venv)"
echo "--------------------------"
sudo VERBOSE=1 ./smithy --bootstrap
echo "---------"
echo "Preparing"
echo "---------"
./smithy -a prepare -o conf/origins/$origin_file \
-p conf/personas/in-a-box/venv-all.yaml \
--tee-file ./prepare.txt -j1 -v
echo "--------"
echo "Building"
echo "--------"
./smithy -a build -o conf/origins/$origin_file \
-p conf/personas/in-a-box/venv-all.yaml \
--tee-file ./build.txt -j1 -v
echo ":)"
publishers:
- zuul-swift-upload-console-log

View File

@ -4220,6 +4220,12 @@
jobs:
- python-jobs
- gate-{name}-pylint
- gate-anvil-rpms-{node}:
node:
- devstack-centos7
- bare-centos6
- gate-anvil-venv-{node}:
node: bare-trusty
- project:
name: apps-catalog

View File

@ -1235,6 +1235,15 @@ jobs:
- name: gate-cliff-requirements
voting: false
- name: gate-anvil-rpms-devstack-centos7
voting: false
- name: gate-anvil-rpms-bare-centos6
voting: false
- name: gate-anvil-venv-bare-trusty
voting: false
- name: gate-heat-cfntools-python34
voting: false
@ -5899,6 +5908,9 @@ projects:
check:
- gate-anvil-pep8
- gate-anvil-python27
- gate-anvil-venv-bare-trusty
- gate-anvil-rpms-bare-centos6
- gate-anvil-rpms-devstack-centos7
- gate-anvil-pylint
gate:
- gate-anvil-pep8