From 036b0aca6b731fec783cf158f8bfca759c80eb9b Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 5 Aug 2023 08:44:49 -0600 Subject: [PATCH] Switch CI's coverage checker from kcov to cargo-llvm-cov Because cargo-kcov is broken and unmaintained. https://github.com/kennytm/cargo-kcov/issues/54 --- .cirrus.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index a92ae8f..78f2492 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -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