Fix pattern in kcov invocation

The old pattern would ignore test executables whose file name ends with
a 'd'.  This should not happen any longer
This commit is contained in:
Colin Benner 2018-11-20 22:24:25 +01:00
parent 5beb4ba987
commit 60e644d17d

View file

@ -31,6 +31,9 @@ after_success: |
make install DESTDIR=../../kcov-build &&
cd ../.. &&
rm -rf kcov-master &&
for file in target/debug/*-*[^\.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 &&
for file in target/debug/*-*[^\.]?;
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) &&
echo "Uploaded code coverage"