From 77a551b6571f9a455efffeb7f43bf8235b2cbe49 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 4 Oct 2019 16:09:42 +0200 Subject: ci: coverage for Lua (no Windows, using luacov) (#11127) --- ci/common/submit_coverage.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ci/common/submit_coverage.sh') diff --git a/ci/common/submit_coverage.sh b/ci/common/submit_coverage.sh index 4e92975d22..c3e6be7f38 100755 --- a/ci/common/submit_coverage.sh +++ b/ci/common/submit_coverage.sh @@ -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 -- cgit From 8f20c50caa7fa008f5e6257ef0fc43620e3baeb1 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 7 Oct 2019 00:44:54 +0200 Subject: ci: submit_coverage: run luacov actually (#11169) Apparently this got lost with #11127 / 77a551b65. --- ci/common/submit_coverage.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ci/common/submit_coverage.sh') diff --git a/ci/common/submit_coverage.sh b/ci/common/submit_coverage.sh index c3e6be7f38..9c7887de0b 100755 --- a/ci/common/submit_coverage.sh +++ b/ci/common/submit_coverage.sh @@ -46,6 +46,9 @@ rm -f coverage.xml # Upload Lua coverage (generated manually on AppVeyor/Windows). if [ "$USE_LUACOV" = 1 ] && [ "$1" != "oldtest" ]; then + if [ -x "${DEPS_BUILD_DIR}/usr/bin/luacov" ]; then + "${DEPS_BUILD_DIR}/usr/bin/luacov" + fi if ! "$codecov_sh" -f luacov.report.out -X gcov -X fix -Z -F "lua,${codecov_flags}"; then echo "codecov upload failed." fi -- cgit