Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Oct 11, 2024
1 parent d88a0d3 commit e996531
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .ci_support/run_docker_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ cd /tmp
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=~/.local \
-DCMAKE_UNITY_BUILD=ON \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Wshadow -Werror -D_GLIBCXX_ASSERTIONS" \
-DSWIG_COMPILE_FLAGS="-O1 -Wno-unused-parameter -Wno-shadow" \
-DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic -Wshadow -Werror -D_GLIBCXX_ASSERTIONS --coverage" \
-DSWIG_COMPILE_FLAGS="-O1 -Wno-unused-parameter" \
-DUSE_SPHINX=ON -DSPHINX_FLAGS="-W -T -j4" \
/io
make install
make tests
ctest --output-on-failure --timeout 100 ${MAKEFLAGS}

# coverage
gcov `find lib/src/ -name "*.gcno"`
lcov --capture --directory . --output-file coverage.info --include "*.cxx"
genhtml --output-directory coverage coverage.info
cp -v coverage.info coverage

uid=$1
gid=$2
if test -n "${uid}" -a -n "${gid}"
Expand Down

0 comments on commit e996531

Please sign in to comment.