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: addons:
apt: apt:
packages: packages:
- python - gfortran
- graphviz - graphviz
- libyaml-dev - libyaml-dev
@ -79,7 +79,7 @@ before_script:
script: share/spack/qa/run-$TEST_SUITE-tests script: share/spack/qa/run-$TEST_SUITE-tests
after_success: 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 # Notifications

View File

@ -40,12 +40,13 @@ cd "$SPACK_ROOT"
source "$SPACK_ROOT/share/spack/setup-env.sh" source "$SPACK_ROOT/share/spack/setup-env.sh"
spack compilers spack compilers
spack config get compilers spack config get compilers
spack install -v libdwarf
# Run unit tests with code coverage # Run unit tests with code coverage
if [[ "$TRAVIS_PYTHON_VERSION" == 2.7 ]]; then if [[ "$TRAVIS_PYTHON_VERSION" == 2.7 ]]; then
coverage run bin/spack install -v libdwarf
coverage run bin/spack test "$@" coverage run bin/spack test "$@"
coverage combine coverage combine
else else
spack install -v libdwarf
spack test "$@" spack test "$@"
fi fi