summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-08-06 19:35:23 +0200
committerGreg Becker <becker33@llnl.gov>2019-08-06 10:35:23 -0700
commitae975c48ac39b9c12248278489cebf9b126bc53a (patch)
treef3e43de922cc0a01323f380ed4211f6b9572dfca
parentcb7e9c155ecc4df75df851a02a5c679e8a294999 (diff)
downloadspack-ae975c48ac39b9c12248278489cebf9b126bc53a.tar.gz
spack-ae975c48ac39b9c12248278489cebf9b126bc53a.tar.bz2
spack-ae975c48ac39b9c12248278489cebf9b126bc53a.tar.xz
spack-ae975c48ac39b9c12248278489cebf9b126bc53a.zip
Avoid sending empty reports to codecov (#12293)
Before this commit we were sending reports also for unit tests that were not collecting coverage data.
-rw-r--r--.travis.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 3151981adc..c94f3e748c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -200,9 +200,11 @@ after_success:
- ccache -s
- case "$TEST_SUITE" in
unit)
- codecov --env PYTHON_VERSION
- --required
- --flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
+ if [[ "$COVERAGE" == "true" ]]; then
+ codecov --env PYTHON_VERSION
+ --required
+ --flags "${TEST_SUITE}${TRAVIS_OS_NAME}";
+ fi
;;
esac