Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
Fixing kcov script
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenldl committed Apr 1, 2018
1 parent 41a0864 commit d68689a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ sudo: required
after_success: |
TARGET=$HOME/kcov &&
export PATH=$TARGET/bin:$PATH &&
for file in target/debug/rsbx*; do if [[ $file == *.d ]]; then continue; fi; mkdir -p "target/cov/rsbx"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/rsbx" "$file"; done &&
for file in target/debug/rsbx*; do if [[ $file == *.d ]]; then continue; fi; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/rsbx" "$file"; done &&
bash <(curl -s https://codecov.io/bash) &&
echo "Uploaded code coverage to Codecov" &&
for file in target/debug/rsbx*; do if [[ $file == *.d ]]; then continue; fi; mkdir -p "target/cov/rsbx"; kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/rsbx" "$file"; done &&
for file in target/debug/rsbx*; do if [[ $file == *.d ]]; then continue; fi; kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/rsbx" "$file"; done &&
echo "Uploaded code coverage to Coveralls"
2 changes: 2 additions & 0 deletions cov_tests/kcov_rsbx_fun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ if [[ $TRAVIS == true ]]; then
export PATH=$TARGET/bin:$PATH
fi

mkdir -p "target/cov/rsbx"

function kcov_rsbx() {
kcov --exclude-pattern=/.cargo,/usr/lib --verify "../target/cov/rsbx" rsbx "$@"
}

0 comments on commit d68689a

Please sign in to comment.