diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2018-05-22 03:31:58 +0200 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2018-05-22 21:55:20 -0700 |
commit | 13b50ac01c2940e1e0327e33d47e83936c9a7900 (patch) | |
tree | 8ae52503f757cf6b6e3bdb4e62c6037bf244d341 /tools | |
parent | 18ce0cf26e733647b33cbaafee57245fdfb932e7 (diff) |
upload coverage reports as a zip file
Diffstat (limited to 'tools')
-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 |