Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 0926702

Browse files
committed
Fix grcov download on macos and upload gcda/gcdo files for debugging
1 parent 0a85347 commit 0926702

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/test-nightly.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ _ cargo cov report
3636
# Generate a coverage report with grcov via lcov.
3737
if [[ ! -f ./grcov ]]; then
3838
uname=$(uname | tr '[:upper:]' '[:lower:]')
39+
if [[ ${uname} = "darwin" ]]; then
40+
uname="osx"
41+
fi
3942
uname_m=$(uname -m | tr '[:upper:]' '[:lower:]')
4043
name=grcov-${uname}-${uname_m}.tar.bz2
4144
_ wget "https://github.com/mozilla/grcov/releases/download/v0.2.3/${name}"
@@ -51,6 +54,13 @@ _ upload_ci_artifact "target/cov/cov-report.tar.bz2"
5154
_ cd target/cov && tar -cjf lcov-report.tar.bz2 report-lcov/* && cd -
5255
_ upload_ci_artifact "target/cov/lcov-report.tar.bz2"
5356

57+
# Upload coverage files to buildkite for grcov debugging
58+
_ cd target/cov/build && tar -cjf cov-gcda.tar.bz2 gcda/* && cd -
59+
_ upload_ci_artifact "target/cov/build/cov-gcda.tar.bz2"
60+
61+
_ cd target/cov/build && tar -cjf cov-gcno.tar.bz2 gcno/* && cd -
62+
_ upload_ci_artifact "target/cov/build/cov-gcno.tar.bz2"
63+
5464
if [[ -z "$CODECOV_TOKEN" ]]; then
5565
echo CODECOV_TOKEN undefined
5666
else

0 commit comments

Comments
 (0)