diff options
Diffstat (limited to 'tools/internal_ci/linux/grpc_coverage.sh')
-rwxr-xr-x | tools/internal_ci/linux/grpc_coverage.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/internal_ci/linux/grpc_coverage.sh b/tools/internal_ci/linux/grpc_coverage.sh index fd927a85fd..97166372ab 100755 --- a/tools/internal_ci/linux/grpc_coverage.sh +++ b/tools/internal_ci/linux/grpc_coverage.sh @@ -26,4 +26,16 @@ python tools/run_tests/run_tests.py \ -l all \ -c gcov \ -x sponge_log.xml \ - -j 16 + -j 16 || FAILED="true" + +# HTML reports can't be easily displayed in GCS, so create a zip archive +# and put it under reports directory to get it uploaded as an artifact. +zip -q -r coverage_report.zip reports || true +rm -rf reports || true +mkdir reports || true +mv coverage_report.zip reports || true + +if [ "$FAILED" != "" ] +then + exit 1 +fi |