![K Jonathan Harker](/assets/img/avatar_default.png)
The ::jenkins::slave class contained a lot of openstack-specific configuration rather than configuration of a generic jenkins slave. The term "bare slave" is overloaded and confusing: create simple_slave and thick_slave to differentiate between the two meanings of "bare". Some portions of ::jenkins::slave will move to simple_slave, some portions to thick_slave, and some portions to slave_common (all in the openstack_project module). Change-Id: I5281a03a7f6da3f98714bcc59ae840ace8435578
33 lines
870 B
Bash
Executable File
33 lines
870 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
# Run coverage via tox. Also, run pip freeze on the
|
|
# resulting environment at the end so that we have a record of exactly
|
|
# what packages we ended up testing.
|
|
|
|
org=$1
|
|
project=$2
|
|
|
|
source /usr/local/jenkins/slave_scripts/functions.sh
|
|
check_variable_org_project "$org" "$project" "$0"
|
|
|
|
source /usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
|
|
|
export NOSE_COVER_HTML=1
|
|
|
|
venv=cover
|
|
|
|
# Workaround the combo of tox running setup.py outside of virtualenv
|
|
# and RHEL having an old distribute. The next line can be removed
|
|
# when either get fixed.
|
|
python setup.py --version
|
|
|
|
tox -e$venv
|
|
result=$?
|
|
|
|
echo "Begin pip freeze output from test virtualenv:"
|
|
echo "======================================================================"
|
|
.tox/$venv/bin/pip freeze
|
|
echo "======================================================================"
|
|
|
|
exit $result
|