blob: 33238e2bea1836c4c28576d8d419f07da3e59e36 [file] [log] [blame]
#!/usr/bin/env bash
set -ex
if [[ $JOB_NAME == *"code-coverage" ]]; then
# Generate a detailed HTML report using lcov
lcov --quiet \
--capture \
--directory . \
--exclude "$PWD/tests/*" \
--no-external \
--rc lcov_branch_coverage=1 \
--output-file build/coverage.info
genhtml --branch-coverage \
--demangle-cpp \
--legend \
--output-directory build/lcov \
--title "NLSR unit tests" \
build/coverage.info
fi