Skip to content

Commit

Permalink
Switch CI's coverage checker from kcov to cargo-llvm-cov
Browse files Browse the repository at this point in the history
Because cargo-kcov is broken and unmaintained.
kennytm/cargo-kcov#54
  • Loading branch information
asomers committed Aug 5, 2023
1 parent 88f73fc commit 036b0ac
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,9 @@ codecov_task:
setup_script:
- apt-get -y update
- apt-get -y install libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc binutils-dev libiberty-dev python-is-python3
- cargo install cargo-kcov
- |
if [ ! -x $HOME/.cargo/bin/kcov ] || [ ! -f $HOME/.cargo/bin/kcov ]; then
mkdir kcov
cd kcov
cargo kcov --print-install-kcov-sh | sh || exit 1
cd -
rm -rf kcov
fi
- cargo install cargo-llvm-cov
codecov_script:
- cargo check # Ensure Cargo.lock exists
- cargo kcov --verbose -- --include-pattern='futures-locks/src'
- cargo llvm-cov --lcov --output-path lcov.info
- bash <(curl -s https://codecov.io/bash)
before_cache_script: rm -rf $CARGO_HOME/registry/index

0 comments on commit 036b0ac

Please sign in to comment.