summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rwxr-xr-xshare/spack/qa/run-unit-tests3
2 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 3f26b319a8..04db99a47b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -46,7 +46,7 @@ sudo: false
addons:
apt:
packages:
- - python
+ - gfortran
- graphviz
- libyaml-dev
@@ -79,7 +79,7 @@ before_script:
script: share/spack/qa/run-$TEST_SUITE-tests
after_success:
- - if [[ $TEST_SUITE == unit && $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls; fi
+ - if [[ $TEST_SUITE == unit && $TRAVIS_PYTHON_VERSION == 2.7 && $TRAVIS_OS_NAME == "linux" ]]; then coveralls; fi
#=============================================================================
# Notifications
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests
index 0728614bc8..9cace0dfd6 100755
--- a/share/spack/qa/run-unit-tests
+++ b/share/spack/qa/run-unit-tests
@@ -40,12 +40,13 @@ cd "$SPACK_ROOT"
source "$SPACK_ROOT/share/spack/setup-env.sh"
spack compilers
spack config get compilers
-spack install -v libdwarf
# Run unit tests with code coverage
if [[ "$TRAVIS_PYTHON_VERSION" == 2.7 ]]; then
+ coverage run bin/spack install -v libdwarf
coverage run bin/spack test "$@"
coverage combine
else
+ spack install -v libdwarf
spack test "$@"
fi