Skip to content

Commit

Permalink
Fix broken CI coverage generation (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
offa committed Jun 12, 2023
1 parent cc2ae4a commit 1bb9f76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions cmake/Coverage.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@

find_program(GCOVR gcovr DOC "LCov")
find_program(GCOVR gcovr DOC "gcovr program")

if( NOT GCOVR )
message(SEND_ERROR "'gcovr' not found")
message(SEND_ERROR "gcovr not found")
else()
message(STATUS "Found gcovr: ${GCOVR}")
endif()


Expand Down
5 changes: 4 additions & 1 deletion script/ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ do
COVERAGE=true;
BUILD_TYPE="Debug"
apt-get install -y --no-install-recommends python3-pip python3-pkg-resources python3-setuptools
pip3 install gcovr
pip3 install -U gcovr

GCC_VERSION="$(${CC} -dumpfullversion | cut -f1 -d.)"
ln -sf /usr/bin/gcov-${GCC_VERSION} /usr/bin/gcov
;;
esac
done
Expand Down

0 comments on commit 1bb9f76

Please sign in to comment.