From 457268571086f921ea1034ec214511047a287ed3 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Fri, 21 Apr 2017 17:41:30 -0700 Subject: Coverage for multiple Python versions. (#3951) Update tests to use codecov for multiple python versions. --- share/spack/qa/run-unit-tests | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests index d2ce9647af..c266665ccb 100755 --- a/share/spack/qa/run-unit-tests +++ b/share/spack/qa/run-unit-tests @@ -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 -- cgit v1.2.3-70-g09d2