diff options
Diffstat (limited to '.travis')
| -rwxr-xr-x | .travis/report-coverage.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.travis/report-coverage.sh b/.travis/report-coverage.sh new file mode 100755 index 0000000..8a5bb38 --- /dev/null +++ b/.travis/report-coverage.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +echo "Reporting coverage to Coveralls.io ..." +echo "travis_fold:start:report-coverage" + +set -e + +while read FILENAME; do + LCOV_INPUT_FILES="$LCOV_INPUT_FILES -a \"$FILENAME\"" +done < <( find Coverage -name *.clean ) + +sed -i'' -e "s_$(cd .. && pwd)/__g" Coverage/coverage.info +lcov "${LCOV_INPUT_FILES}" -o Coverage/coverage.info + +cd .. +coveralls-lcov --repo-token ${COVERALLS_API_TOKEN} build/Coverage/coverage.info + +echo "travis_fold:end:report-coverage" |
