From aebc47ad554ceb899ac6184bf4d54db458441a52 Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Fri, 28 Sep 2018 13:42:41 -0600 Subject: [PATCH] Attempt coverage reporting --- ci/test-nightly.sh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/ci/test-nightly.sh b/ci/test-nightly.sh index 1af99cea44..eaeaa0cf1c 100755 --- a/ci/test-nightly.sh +++ b/ci/test-nightly.sh @@ -29,15 +29,13 @@ maybe_cargo_install cov _ cargo cov clean _ cargo cov test --lib +_ cargo cov report -# TODO: Fix `cargo cov report` in Docker. -#_ cargo cov report -# -#echo --- Coverage report: -#ls -l target/cov/report/index.html -# -#if [[ -z "$CODECOV_TOKEN" ]]; then -# echo CODECOV_TOKEN undefined -#else -# bash <(curl -s https://codecov.io/bash) -x 'llvm-cov-6.0 gcov' -#fi +echo --- Coverage report: +ls -l target/cov/report/index.html + +if [[ -z "$CODECOV_TOKEN" ]]; then + echo CODECOV_TOKEN undefined +else + bash <(curl -s https://codecov.io/bash) -x 'llvm-cov-6.0 gcov' +fi