diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-12-30 13:53:30 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-12-30 17:18:19 -0800 |
commit | b5537553f2ec7de70b507936a3abea30b71e2cbf (patch) | |
tree | f798d9f19e9475bd39e0e24c8a48a83077c2b75f | |
parent | a42f340d375cbc781e7a113f3b3afa2e4e3124ed (diff) | |
download | spack-b5537553f2ec7de70b507936a3abea30b71e2cbf.tar.gz spack-b5537553f2ec7de70b507936a3abea30b71e2cbf.tar.bz2 spack-b5537553f2ec7de70b507936a3abea30b71e2cbf.tar.xz spack-b5537553f2ec7de70b507936a3abea30b71e2cbf.zip |
Run coverage for the `spack install` command as well as `spack test`.
- Also don't run coverage on OSX.
-rw-r--r-- | .travis.yml | 4 | ||||
-rwxr-xr-x | share/spack/qa/run-unit-tests | 3 |
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 |