This commit is contained in:
@@ -34,18 +34,9 @@ jobs:
|
||||
|
||||
- name: Build
|
||||
run: cmake --build build --config Debug -j "$(nproc)"
|
||||
|
||||
- name: Test
|
||||
|
||||
- name: Test & Coverage
|
||||
run: |
|
||||
cd build
|
||||
ctest --output-on-failure
|
||||
|
||||
- name: Coverage
|
||||
run: |
|
||||
GCOV_TOOL="$(/usr/bin/g++ -print-prog-name=gcov)"
|
||||
echo "Using gcov: $GCOV_TOOL"
|
||||
"$GCOV_TOOL" --version
|
||||
lcov --gcov-tool "$GCOV_TOOL" --capture --directory build --output-file build/coverage.info
|
||||
lcov --remove build/coverage.info "/usr/*" --output-file build/coverage.info
|
||||
lcov --summary build/coverage.info
|
||||
genhtml build/coverage.info --output-directory build/coverage-html
|
||||
ctest -T Test --output-on-failure
|
||||
ctest -T Coverage --output-on-failure
|
||||
|
||||
Reference in New Issue
Block a user