![Monty Taylor](/assets/img/avatar_default.png)
For the things that use pbr, we no longer have git shas in the version numbers. So, in order to verify what exact version of things we're installing, use pbr freeze to collect the information. Change-Id: I41ff993aa86e6a7ac1beed3cc5a3b94dcadbdd7c
26 lines
749 B
Bash
Executable File
26 lines
749 B
Bash
Executable File
#!/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
|
|
|
|
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=$?
|
|
[ -e .tox/$venv/bin/pbr ] && freezecmd=pbr || freezecmd=pip
|
|
|
|
echo "Begin $freezecmd freeze output from test virtualenv:"
|
|
echo "======================================================================"
|
|
tox -e$venv -- $freezecmd freeze
|
|
echo "======================================================================"
|
|
|
|
exit $result
|