aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-03 21:40:34 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-03-03 22:01:10 +0100
commit4439cca679a57fa4731f89b53db429f64460e37c (patch)
tree90529468c32bdd5b64ff9caa084cb55d1739acc1
parentf7a2d7b7f5031831184f28b37b6dac95fe8428ed (diff)
downloadaskama-4439cca679a57fa4731f89b53db429f64460e37c.tar.gz
askama-4439cca679a57fa4731f89b53db429f64460e37c.tar.bz2
askama-4439cca679a57fa4731f89b53db429f64460e37c.zip
Adapt coverage collection for cargo workspaces with proc_macro crates
Diffstat (limited to '')
-rw-r--r--.travis.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 3c31963..c4f7c9e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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"