code coverage

This commit is contained in:
Grant Limberg
2023-12-05 12:15:23 -08:00
parent d776afd738
commit 98c86fddff
+10
View File
@@ -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
- 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
- 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