Skip to content
Snippets Groups Projects
Commit a4c47396 authored by Massimiliano Culpo's avatar Massimiliano Culpo Committed by Adam J. Stewart
Browse files

Travis: upload the coverage data as part of the script (#6877)

According to Travis docs the exit code of after_success doesn't affect
the build result. Instead, uploading the coverage data as the last step
of the script will cause the job to fail if the command exits with
non-zero.

https://docs.travis-ci.com/user/customizing-the-build/#Breaking-the-Build
parent d07b8323
Branches
Tags
No related merge requests found
...@@ -149,10 +149,9 @@ before_script: ...@@ -149,10 +149,9 @@ before_script:
#============================================================================= #=============================================================================
# Building # Building
#============================================================================= #=============================================================================
script: share/spack/qa/run-$TEST_SUITE-tests script:
- share/spack/qa/run-$TEST_SUITE-tests
after_success: - if [[ "$COVERAGE" == "true" ]]; then codecov --env PY_VERSION --required ; fi
- codecov --env PY_VERSION
#============================================================================= #=============================================================================
# Notifications # Notifications
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment