Coverage for multiple Python versions. (#3951)

Update tests to use codecov for multiple python versions.
This commit is contained in:
Todd Gamblin
2017-04-21 17:41:30 -07:00
committed by GitHub
parent ead58cbb90
commit 4572685710
2 changed files with 4 additions and 2 deletions

View File

@@ -42,7 +42,9 @@ spack compilers
spack config get compilers
# Run unit tests with code coverage
if [[ "$TRAVIS_PYTHON_VERSION" == 2.7 ]]; then
py_ver=$(python -c 'import platform; print(platform.python_version())')
if [[ "$py_ver" == 2.7* || "$py_ver" == 3.6* ]];
then
coverage run bin/spack install -v libdwarf
coverage run bin/spack test "$@" && coverage combine
else