-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change coverage-bin gcov -> llvm-cov
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,15 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
ubuntu-gcc-code-cov: | ||
ubuntu-code-cov: | ||
runs-on: ubuntu-latest | ||
env: | ||
CMAKE_FLAGS: "-DSERDEPP_USE_NLOHMANN_JSON=ON -DSERDEPP_USE_TOML11=ON -DSERDEPP_USE_YAML-CPP=ON -DSERDEPP_USE_RAPIDJSON=ON -DSERDEPP_USE_FMT=ON -DSERDEPP_BUILD_TESTING=ON -DSERDEPP_USE_CATCH2=ON" | ||
strategy: | ||
matrix: | ||
build-type: ["Debug"] | ||
gcc-version: ["latest"] | ||
container: gcc:${{ matrix.gcc-version }} | ||
compiler-version: ["latest"] | ||
container: silkeh/clang:${{ matrix.compiler-version }} | ||
steps: | ||
- name: Get latest CMake | ||
uses: lukka/[email protected] | ||
|
@@ -33,13 +33,15 @@ jobs: | |
cmake --build ./build --config ${{matrix.build-type}} | ||
- name: Run Test Script | ||
working-directory: build | ||
run: ctest -C ${{matrix.build-type}} --output-on-failure | ||
working-directory: build/${{matrix.build-type}} | ||
run: | | ||
./unittest | ||
llvm-profdata merge -sparse default.profraw -o default.profdata | ||
llvm-cov export ./unittest --instr-profile default.profdata -format=lcov >> coverage.info | ||
- name: Prepare Codecov | ||
run: | | ||
apt-get install -y lcov | ||
lcov --directory . --capture --output-file coverage.info --rc lcov_branch_coverage=1 | ||
lcov --remove coverage.info '/usr/*' --output-file coverage.info --rc lcov_branch_coverage=1 | ||
lcov --remove coverage.info '**/tests/*' --output-file coverage.info --rc lcov_branch_coverage=1 | ||
lcov --remove coverage.info '**/.cppm/*' --output-file coverage.info --rc lcov_branch_coverage=1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters