Monty Taylor 5bb002b4d3 Run coverage xml to get xml coverage reports.
Instead of nosexcover, coverage has the support built right in.

Change-Id: I16d0c0afb48ee3f4711675e0e0bbf15a51e109d1
2012-06-08 12:37:57 -04:00

27 lines
694 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.
#
if [ -f .cache.bundle ]
then
venv=jenkinscover
else
venv=cover
fi
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