Skip to content

Commit c9e0503

Browse files
committed
Rust generates project-hash.d files. They are causing errors because of the "for file in" loop. We have to exclude them by a regex.
1 parent 7a1fe74 commit c9e0503

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ after_success: |
2626
sudo make install &&
2727
cd ../.. &&
2828
rm -rf kcov-master &&
29-
for file in target/debug/examplerust-*; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
29+
for file in target/debug/examplerust-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
3030
bash <(curl -s https://codecov.io/bash) &&
3131
echo "Uploaded code coverage"
3232

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ after_success: |
8888
sudo make install &&
8989
cd ../.. &&
9090
rm -rf kcov-master &&
91-
for file in target/debug/<PROJECT-NAME>-*; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
91+
for file in target/debug/<PROJECT-NAME>-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
92+
9293
bash <(curl -s https://codecov.io/bash) &&
9394
echo "Uploaded code coverage"
9495
```

0 commit comments

Comments
 (0)