ci: codecov: improve flags/env (#2651)

This commit is contained in:
Daniel Hahler 2019-02-14 18:46:01 +01:00 committed by GitHub
parent df9ed76418
commit 991d525f7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -116,9 +116,7 @@ install:
if [ "$DO_COVERAGE" = "codecov" ]; then
test -f build/luacov.stats.out || { echo 'build/luacov.stats.out does not exist.'; return 1; }
luacov || return 1
# Set env variable for codecov.
TESTS="$1"
travis_retry bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -e LUANAME,TESTS || return 1
travis_retry bash /tmp/codecov-bash -f build/luacov.report.out -X gcov -X coveragepy -F luacov -e LUANAME,LGIVER || return 1
rm build/luacov.report.out build/luacov.stats.out
fi
return 0
@ -147,9 +145,7 @@ install:
done
# Upload to Codecov.
# Set env variable for codecov.
TESTS="$1"
travis_retry bash /tmp/codecov-bash -X gcov -X coveragepy -e LUANAME,TESTS
travis_retry bash /tmp/codecov-bash -X gcov -X coveragepy -F gcov -e LUANAME,LGIVER
)
fi
return 0