Skip to content

Commit

Permalink
Redirect coverage stderr to file
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Oct 16, 2019
1 parent 550918c commit 98005bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ci/test-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ scripts/coverage.sh
report=coverage-"${CI_COMMIT:0:9}".tar.gz
mv target/cov/report.tar.gz "$report"
upload-ci-artifact "$report"
upload-ci-artifact target/cov/coverage-stderr.log
annotate --style success --context lcov-report \
"lcov report: <a href=\"artifact://$report\">$report</a>"

Expand Down
2 changes: 1 addition & 1 deletion scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ source ci/rust-version.sh nightly
# shellcheck disable=SC2086 #
RUST_LOG=solana=trace _ cargo +$rust_nightly test --target-dir target/cov --lib --no-run $crate "$@"
# shellcheck disable=SC2086 #
RUST_LOG=solana=trace _ cargo +$rust_nightly test --target-dir target/cov --lib $crate "$@" 2> /dev/null
RUST_LOG=solana=trace _ cargo +$rust_nightly test --target-dir target/cov --lib $crate "$@" 2> target/cov/coverage-stderr.log

echo "--- grcov"

Expand Down

0 comments on commit 98005bf

Please sign in to comment.