Skip to content

Commit c7094f2

Browse files
committed
Fix Bash glob when Rust hash ends in d
When the Rust hash ends in a "d" the previous blob would fail to match. This is due to codecov#3 which fixed an issue where Rust generated ".d" files that should correctly be filtered. This new version loops over both the correct files and ".d" files. Within the loop it checks for if the file is executable as its filtering of the ".d" files. I believe in general this is a better design as the more advanced Bash glob is not very portable.
1 parent b4e2f94 commit c7094f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ after_success: |
3333
make install DESTDIR=../../kcov-build &&
3434
cd ../.. &&
3535
rm -rf kcov-master &&
36-
for file in target/debug/examplerust-*[^\.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 &&
36+
for file in target/debug/examplerust-*; [ -x "${file}" ] || continue; 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 &&
3737
bash <(curl -s https://codecov.io/bash) &&
3838
echo "Uploaded code coverage"

0 commit comments

Comments
 (0)