Run coverage for the spack install command as well as spack test.

- Also don't run coverage on OSX.
This commit is contained in:
Todd Gamblin 2016-12-30 13:53:30 -08:00
parent a42f340d37
commit b5537553f2
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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