Make sure tests get run by coverage

This commit is contained in:
Jon Gjengset 2018-11-22 18:42:57 -05:00
parent 3e034585b3
commit 9353493139
No known key found for this signature in database
GPG key ID: D64AC9D67176DC71
2 changed files with 2 additions and 1 deletions

View file

@ -65,7 +65,8 @@ after_success: |
make install DESTDIR=../../kcov-build && make install DESTDIR=../../kcov-build &&
cd ../.. && cd ../.. &&
rm -rf kcov-master && rm -rf kcov-master &&
for file in target/debug/imap-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done && ls target/debug/deps &&
for file in target/debug/deps/imap*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
bash <(curl -s https://codecov.io/bash) && bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage"; echo "Uploaded code coverage";
fi fi