system-config/modules/jenkins/files/slave_scripts/run-cover.sh
James E. Blair 0c6f4af977 Switch to html coverage reports.
Change-Id: Id841726e55bb0c8fb9b6a80648e1e3727b8d5a03
Reviewed-on: https://review.openstack.org/11891
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2012-08-24 16:28:26 +00:00

24 lines
661 B
Bash
Executable File

#!/bin/bash -xe
# If a bundle file is present, call tox with the jenkins version of
# the test environment so it is used. Otherwise, use the normal
# (non-bundle) test environment. 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.
#
export NOSE_COVER_HTML=1
venv=cover
tox -e$venv
result=$?
.tox/$venv/bin/coverage xml
echo "Begin pip freeze output from test virtualenv:"
echo "======================================================================"
.tox/$venv/bin/pip freeze
echo "======================================================================"
exit $result