chore: Prune external coverage
This commit is contained in:
parent
903c62eaa6
commit
bdc97e5a9e
|
|
@ -32,9 +32,6 @@ jobs:
|
||||||
echo "$LCOV_ROOT/bin" >> $GITHUB_PATH
|
echo "$LCOV_ROOT/bin" >> $GITHUB_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: LCOV version
|
|
||||||
run: lcov --version
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||||
|
|
@ -49,11 +46,12 @@ jobs:
|
||||||
run: ctest --verbose
|
run: ctest --verbose
|
||||||
|
|
||||||
- name: Prune external code coverage
|
- name: Prune external code coverage
|
||||||
|
working-directory: ${{github.workspace}}/build
|
||||||
run: rm -rf ./external/google-test/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.gcda
|
run: rm -rf ./external/google-test/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.gcda
|
||||||
|
|
||||||
- name: Generate code coverage report
|
- name: Generate code coverage report
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}/build
|
||||||
run: |
|
run: |
|
||||||
lcov --directory . --capture --output-file coverage.info
|
lcov --directory . --capture --output-file coverage.info
|
||||||
lcov --remove coverage.info 'test/*' '/usr/*' 'external/*' --output-file coverage.info
|
lcov --remove coverage.info '/usr/*' './test/*' './external/*' --output-file coverage.info
|
||||||
lcov --list coverage.info
|
lcov --list coverage.info
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue