ci: coverage for Lua (no Windows, using luacov) (#11127)

This commit is contained in:
Daniel Hahler
2019-10-04 16:09:42 +02:00
committed by GitHub
parent a341eb6087
commit 77a551b657
4 changed files with 34 additions and 0 deletions

View File

@@ -43,3 +43,11 @@ fi
# Cleanup always, especially collected data.
find . \( -name '*.gcov' -o -name '*.gcda' \) -ls -delete | wc -l
rm -f coverage.xml
# Upload Lua coverage (generated manually on AppVeyor/Windows).
if [ "$USE_LUACOV" = 1 ] && [ "$1" != "oldtest" ]; then
if ! "$codecov_sh" -f luacov.report.out -X gcov -X fix -Z -F "lua,${codecov_flags}"; then
echo "codecov upload failed."
fi
rm luacov.stats.out
fi