Do not cat luacov on travis, but test for it

This commit is contained in:
Emmanuel Lepage Vallee 2017-01-08 04:08:30 -05:00 committed by Daniel Hahler
parent 0863e52c1d
commit 594cb6fc5d
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ install:
do_codecov() { do_codecov() {
echo "== do_codecov in $PWD: $*: build/luacov.stats.out: ==" echo "== do_codecov in $PWD: $*: build/luacov.stats.out: =="
if [ "$DO_COVERAGE" = "codecov" ]; then if [ "$DO_COVERAGE" = "codecov" ]; then
cat build/luacov.stats.out test -f build/luacov.stats.out || { echo 'build/luacov.stats.out does not exist.'; return 1; }
luacov || return 1 luacov || return 1
travis_retry bash /tmp/codecov-bash -X coveragepy -c -F "$1" || return 1 travis_retry bash /tmp/codecov-bash -X coveragepy -c -F "$1" || return 1
rm build/luacov.stats.out rm build/luacov.stats.out
@ -226,6 +226,6 @@ after_success:
- | - |
set -e set -e
if [ "$DO_COVERAGE" = "coveralls" ]; then if [ "$DO_COVERAGE" = "coveralls" ]; then
cat build/luacov.stats.out test -f build/luacov.stats.out || { echo 'build/luacov.stats.out does not exist.'; return 1; }
luacov-coveralls --verbose --merge luacov-coveralls --verbose --merge
fi fi