Fix code coverage script

This commit is contained in:
Wesley Moore 2022-02-08 20:08:46 +10:00
parent 2de56e9a39
commit 1f5138aac9
No known key found for this signature in database
GPG key ID: BF67766C0BC2D0EE

View file

@ -16,9 +16,10 @@ make install DESTDIR=../../kcov-build
cd ../..
rm -rf "kcov-$KCOV_VERSION"
for file in target/debug/"$CRATE"-*[^\.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";
for file in target/debug/deps/"$CRATE"-*; do
[ -x "${file}" ] || continue
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)