d214e79a6b
This reverts commit 18d9d8df3d
.
Change-Id: I462751ef5137bf161125505df821583d301845ba
31 lines
982 B
YAML
31 lines
982 B
YAML
- name: Run code coverage
|
|
args:
|
|
chdir: "{{ zuul_work_dir }}"
|
|
shell: |
|
|
#!/bin/bash -xe
|
|
|
|
# Run coverage via tox. Also, run pbr 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
|
|
export UPPER_CONSTRAINTS_FILE=$(pwd)/upper-constraints.txt
|
|
|
|
venv={{ tox_environment }}
|
|
|
|
# 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=$?
|
|
[ -e .tox/$venv/bin/pbr ] && freezecmd=pbr || freezecmd=pip
|
|
|
|
echo "Begin $freezecmd freeze output from test virtualenv:"
|
|
echo "======================================================================"
|
|
.tox/${venv}/bin/${freezecmd} freeze
|
|
echo "======================================================================"
|
|
|
|
exit $result
|