Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch CI's coverage checker from kcov to cargo-llvm-cov #56

Merged
merged 1 commit into from
Aug 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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