Skip to content
Snippets Groups Projects
Commit 45726857 authored by Todd Gamblin's avatar Todd Gamblin Committed by GitHub
Browse files

Coverage for multiple Python versions. (#3951)

Update tests to use codecov for multiple python versions.
parent ead58cbb
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ before_script:
script: share/spack/qa/run-$TEST_SUITE-tests
after_success:
- if [[ $TEST_SUITE == unit && $TRAVIS_PYTHON_VERSION == 2.7 && $TRAVIS_OS_NAME == "linux" ]]; then codecov --env PY_VERSION; fi
- codecov --env PY_VERSION
#=============================================================================
# Notifications
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment