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
No related branches found
No related tags found
No related merge requests found
......@@ -149,10 +149,9 @@ before_script:
#=============================================================================
# Building
#=============================================================================
script: share/spack/qa/run-$TEST_SUITE-tests
after_success:
- codecov --env PY_VERSION
script:
- share/spack/qa/run-$TEST_SUITE-tests
- if [[ "$COVERAGE" == "true" ]]; then codecov --env PY_VERSION --required ; fi
#=============================================================================
# Notifications
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment