Gate jeepyb and openstack/requirements on pbr

Use the pbr integration test to gate jeepyb's run-mirror as well as
additions to the openstack/requirements file.

Change-Id: Iac1e842bb6bbb4201c439a71c9917d478e5ae110
This commit is contained in:
Monty Taylor
2013-07-21 20:59:45 -07:00
committed by Jeremy Stanley
parent ba08b0d3b2
commit 98cc00ad5c
4 changed files with 41 additions and 62 deletions

View File

@@ -1,26 +1,32 @@
- job:
name: gate-requirements-install
node: precise
- job-template:
name: '{pipeline}-requirements-integration'
node: '{node}'
wrappers:
- timeout:
timeout: 120
fail: true
- timestamps
builders:
- gerrit-git-prep
- devstack-checkout
- shell: |
#!/bin/bash -xe
source /usr/local/jenkins/slave_scripts/select-mirror.sh openstack requirements
virtualenv --clear .venv
FILE="global-requirements.txt"
# Ignore lines beginning with https?:// just as the mirror script does.
sed -e '/^https\?:\/\//d' $FILE > $FILE.clean
# Run the same basic pip command that the mirror script runs.
.venv/bin/pip install -M -U --exists-action=w -r $FILE.clean
if [ -e dev-requirements.txt ] ; then
.venv/bin/pip install -M -U --exists-action=w -r dev-requirements.txt
fi
# Print all installed stuff to demonstrate versions
.venv/bin/pip freeze
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_EXERCISES=0
export DEVSTACK_GATE_REQS_INTEGRATION=1
function gate_hook {{
bash $GATE_SCRIPT_DIR/devstack-vm-gate.sh && \
bash -xe $BASE/new/pbr/tools/integration.sh $PROJECTS
}}
export -f gate_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
- link-logs
publishers:
- devstack-logs
- console-log
- job: