Noorul Islam K M 7f233434cf Update solum devstack job to install packages from test-requirements.txt
Somehow in devstack job all the packages listed in test-requirements are
not installed. There is an explanation [1] for this in the dev list.

So as suggested by Clark Boylan in the thread, just install them in
pre_test_hook.

[1] http://www.mail-archive.com/openstack-dev@lists.openstack.org/msg12531.html

Change-Id: I39cdfb4544fd81db79c02909962f9d4bf1ed879f
2013-12-27 08:14:11 +05:30

45 lines
1.3 KiB
YAML

- job:
name: gate-solum-devstack-dsvm
node: devstack-precise
wrappers:
- timeout:
timeout: 65
fail: true
- timestamps
builders:
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=60
export ENABLED_SERVICES=solum
export PROJECTS="stackforge/solum"
function pre_test_hook {
# Install packages from test-requirements.txt
sudo pip install -r /opt/stack/new/solum/test-requirements.txt
# Install solum devstack integration
SOLUM_BASE=/opt/stack/new/solum/contrib/devstack
DEVSTACK_BASE=/opt/stack/new/devstack
cp $SOLUM_BASE/lib/* $DEVSTACK_BASE/lib
cp $SOLUM_BASE/extras.d/* $DEVSTACK_BASE/extras.d
}
export -f pre_test_hook
function post_test_hook {
cd /opt/stack/new/solum/functionaltests
./run_tests.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
- link-logs
publishers:
- devstack-logs
- console-log