1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-29 21:21:12 +02:00

add codecov.yaml and update coverage flags (#26)

This commit is contained in:
Lars Melchior 2020-04-21 12:00:13 +02:00 committed by GitHub
parent 918af69383
commit f3e6445b67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

5
codecov.yaml Normal file
View file

@ -0,0 +1,5 @@
ignore:
- "test"
comment:
require_changes: true

View file

@ -65,6 +65,6 @@ doctest_discover_tests(GreeterTests)
# ---- code coverage ----
if (ENABLE_TEST_COVERAGE)
target_compile_options(Greeter PRIVATE -O0 -g -fprofile-arcs -ftest-coverage --coverage)
target_link_options(Greeter PUBLIC "--coverage")
target_compile_options(Greeter PUBLIC -O0 -g -fprofile-arcs -ftest-coverage)
target_link_options(Greeter PUBLIC -fprofile-arcs -ftest-coverage)
endif()