From fb7e4101f6093c34739678bfca35690d2daea79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 13 Aug 2022 16:29:43 +0200 Subject: [PATCH] package/ci: go back to lcov 1.13 on MinGW. Same change as in Corrade, went unnoticed for almost a year. This partially reverts commit c07e35e31c1b2e983150916174c5f94e2c084a2e. --- package/ci/appveyor-lcov.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/package/ci/appveyor-lcov.sh b/package/ci/appveyor-lcov.sh index f0bf24f36..9e5f681c5 100644 --- a/package/ci/appveyor-lcov.sh +++ b/package/ci/appveyor-lcov.sh @@ -20,12 +20,16 @@ set -ev # AppVeyor ships Perl on its own and since we fetch our own lcov anyway, the # MSYS insanity is not needed for ANYTHING AT ALL, in fact. -wget https://github.com/linux-test-project/lcov/archive/v1.15.tar.gz -tar -xzf v1.15.tar.gz +# Important: 1.13 is the only version that actually works. 1.15 doesn't, tries +# to find the original source files in build/.../CMakeFiles/src/Magnum and +# results in a zero-byte coverage being happily uploaded, with no error message +# produced whatsoever. How nice. +wget https://github.com/linux-test-project/lcov/archive/v1.13.tar.gz +tar -xzf v1.13.tar.gz # Keep in sync with PKBUILD-coverage and circleci.yml, please -lcov-1.15/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --directory . --capture --output-file coverage.info > /dev/null -lcov-1.15/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --extract coverage.info "*/src/Magnum*/*" --output-file coverage.info > /dev/null -lcov-1.15/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --remove coverage.info "*/src/MagnumExternal/*" --output-file coverage.info > /dev/null -lcov-1.15/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --remove coverage.info "*/Test/*" --output-file coverage.info > /dev/null -lcov-1.15/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --remove coverage.info "*/build/src/*" --output-file coverage.info > /dev/null +lcov-1.13/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --directory . --capture --output-file coverage.info > /dev/null +lcov-1.13/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --extract coverage.info "*/src/Magnum*/*" --output-file coverage.info > /dev/null +lcov-1.13/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --remove coverage.info "*/src/MagnumExternal/*" --output-file coverage.info > /dev/null +lcov-1.13/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --remove coverage.info "*/Test/*" --output-file coverage.info > /dev/null +lcov-1.13/bin/lcov --gcov-tool /c/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcov --remove coverage.info "*/build/src/*" --output-file coverage.info > /dev/null