chore: Is gcov alread there ?

This commit is contained in:
Francois Best 2021-08-10 09:37:04 +02:00
parent bd7e08b2e6
commit 6341d57c27
1 changed files with 6 additions and 2 deletions

View File

@ -32,6 +32,10 @@ jobs:
tar -xf "$LCOV_ROOT/lcov.tar.gz" --strip-components=1 -C "$LCOV_ROOT" tar -xf "$LCOV_ROOT/lcov.tar.gz" --strip-components=1 -C "$LCOV_ROOT"
echo "$LCOV_ROOT/bin" >> $GITHUB_PATH echo "$LCOV_ROOT/bin" >> $GITHUB_PATH
shell: bash shell: bash
- name: Info
run: |
lcov --version
gcov --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.
@ -51,6 +55,6 @@ jobs:
- name: Generate code coverage report - name: Generate code coverage report
run: | run: |
lcov --gcov-tool $GCOV --directory . --capture --output-file coverage.info lcov --directory . --capture --output-file coverage.info
lcov --gcov-tool $GCOV --remove coverage.info 'test/*' '/usr/*' 'external/*' --output-file coverage.info lcov --remove coverage.info 'test/*' '/usr/*' 'external/*' --output-file coverage.info
lcov --list coverage.info lcov --list coverage.info