mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-28 13:30:59 +00:00
Adapt coverage collection for cargo workspaces with proc_macro crates
This commit is contained in:
parent
f7a2d7b7f5
commit
4439cca679
@ -27,6 +27,8 @@ after_success: |
|
||||
sudo make install &&
|
||||
cd ../.. &&
|
||||
rm -rf kcov-master &&
|
||||
for file in target/debug/deps/*; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
|
||||
cargo clean &&
|
||||
mkdir -p target/cov &&
|
||||
kcov --exclude-pattern=/.cargo,/usr/lib --verify target/cov cargo test --all &&
|
||||
bash <(curl -s https://codecov.io/bash) &&
|
||||
echo "Uploaded code coverage"
|
||||
|
Loading…
x
Reference in New Issue
Block a user