From 0f69898eb21266ef8a8d8739fbda3a5ecfb7b109 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Tue, 5 Dec 2023 12:23:46 -0800 Subject: [PATCH] coverage --- .drone.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d8bb41f..68e9986 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,9 +12,14 @@ steps: pull: always environment: PATH: /bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/.cargo/bin + CODECOV_TOKEN: + from_secret: codecov_token commands: - cargo build - - cargo test + - CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='coverage/cargo-test-%p-%m.profraw' cargo test + - mkdir -p target/coverage + - grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/tests.lcov + - codecov -B ${DRONE_BRANCH} -b ${DRONE_BUILD_NUMBER} -f target/coverage/tests.lcov -F amd64 trigger: event: - custom @@ -33,9 +38,14 @@ steps: pull: always environment: PATH: /bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/.cargo/bin + CODECOV_TOKEN: + from_secret: codecov_token commands: - cargo build - - cargo test + - CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='coverage/cargo-test-%p-%m.profraw' cargo test + - mkdir -p target/coverage + - grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage/tests.lcov + - codecov -B ${DRONE_BRANCH} -b ${DRONE_BUILD_NUMBER} -f target/coverage/tests.lcov -F arm64 trigger: event: - custom