Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload code coverage report to buildkite
Browse files Browse the repository at this point in the history
Because I can't figure out why codecov.io can't parse our lcov files.
garious committed Oct 4, 2018
1 parent c812c3f commit f582765
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions ci/docker-rust/Dockerfile
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ RUN set -x && \
apt install -y \
buildkite-agent \
cmake \
lcov \
libclang-common-7-dev \
llvm-7 \
rsync \
9 changes: 5 additions & 4 deletions ci/test-nightly.sh
Original file line number Diff line number Diff line change
@@ -38,12 +38,13 @@ fi
_ cargo cov clean
_ cargo cov test --lib
_ ./grcov . -t lcov > lcov.info
_ genhtml -o target/cov/report --show-details --highlight --ignore-errors source --legend lcov.info
upload_ci_artifact target/cov/report/*

if [[ -z "$CODECOV_TOKEN" ]]; then
echo CODECOV_TOKEN undefined
genhtml -o target/cov/report --show-details --highlight --ignore-errors source --legend lcov.info
echo --- Coverage report:
ls -l target/cov/report/index.html
else
bash <(curl -s https://codecov.io/bash) -X gcov
true
# TODO: Why doesn't codecov grok our lcov files?
#bash <(curl -s https://codecov.io/bash) -X gcov
fi

0 comments on commit f582765

Please sign in to comment.