Skip to content

Commit

Permalink
fix coverage command
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Feb 12, 2024
1 parent a9227f7 commit 81b13df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ jobs:
with:
arch: x64

- name: Install cpp-coveralls
run: python -m pip install --user cpp-coveralls

- name: Setup Dependencies
shell: powershell
run: |
Expand All @@ -67,10 +64,7 @@ jobs:
- name: Test
run: ctest -C ${{env.BUILD_TYPE}} --test-dir build_test --output-on-failure

- name: Collect gcov files
- name: Submit results to Coveralls using cpp-coveralls
run: |
cmake -B build_test tests -DCOVERAGE=1
tar xvf build_test/gcov.tar.gz
- name: Submit the gcov into the Coveralls
run: python -m coveralls -i Testing/CoverageInfo/fluent_tray.hpp.gcov -t ${{env.TOKEN}}
python3 -m pip install --user cpp-coveralls
python3 -m coveralls -r ./ -E ".*/tests/.*" -E ".*/build_test/.*" -E ".*/demo/.*" t ${{env.TOKEN}}
11 changes: 0 additions & 11 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,3 @@ set(
CMAKE_CTEST_ARGUMENTS
"${CMAKE_CTEST_ARGUMENTS} --verbose --no-label-summary --parallel ${PROC_N}"
)

if(${COVERAGE})
include(CTestCoverageCollectGCOV)
ctest_coverage_collect_gcov(
TARBALL gcov.tar.gz
TARBALL_COMPRESSION GZIP
SOURCE ${PROJECT_SOURCE_DIR}
BUILD ${CMAKE_BINARY_DIR}
GCOV_COMMAND gcov
GCOV_OPTIONS -bc)
endif()

0 comments on commit 81b13df

Please sign in to comment.