diff --git a/README.md b/README.md index a2d916fbf88594..9fe88f235c0d4a 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,7 @@ To generate code coverage statistics, run kcov via Docker: ```bash $ ./ci/coverage.sh ``` -The coverage report will be written to `./target/cov/index.html` +The coverage report will be written to `./target/cov/report/index.html` Why coverage? While most see coverage as a code quality metric, we see it primarily as a developer diff --git a/ci/buildkite.yml b/ci/buildkite.yml index fbf4225d1828e3..4b84886825ab74 100644 --- a/ci/buildkite.yml +++ b/ci/buildkite.yml @@ -3,9 +3,6 @@ steps: name: "stable [public]" timeout_in_minutes: 20 - wait - - command: "ci/coverage.sh" - name: "coverage [public]" - timeout_in_minutes: 20 - command: "ci/docker-run.sh rustlang/rust:nightly ci/test-nightly.sh || true" name: "nightly - FAILURES IGNORED [public]" timeout_in_minutes: 20 diff --git a/ci/coverage.sh b/ci/coverage.sh index fc6098fc3b8fc3..89b4e5153878eb 100755 --- a/ci/coverage.sh +++ b/ci/coverage.sh @@ -2,15 +2,11 @@ cd "$(dirname "$0")/.." -ci/docker-run.sh evilmachines/rust-cargo-kcov \ - bash -exc "\ - export RUST_BACKTRACE=1; \ - cargo build --verbose; \ - cargo kcov --lib --verbose; \ - " +cargo install cargo-cov +cargo cov test echo Coverage report: -ls -l target/cov/index.html +ls -l target/cov/report/index.html if [[ -z "$CODECOV_TOKEN" ]]; then echo CODECOV_TOKEN undefined diff --git a/ci/test-nightly.sh b/ci/test-nightly.sh index a0ae0102eeb131..a33ba3f770ac3f 100755 --- a/ci/test-nightly.sh +++ b/ci/test-nightly.sh @@ -10,5 +10,6 @@ rustup component add rustfmt-preview cargo build --verbose --features unstable cargo test --verbose --features unstable cargo bench --verbose --features unstable +ci/coverage.sh exit 0