Skip to content

Commit 2a48317

Browse files
committed
Generate coverage in a separate step
1 parent c2b0ef3 commit 2a48317

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ jobs:
1919
export PATH=$HOME/.sonar/build-wrapper-linux-x86:$PATH
2020
build-wrapper-linux-x86-64 --out-dir bw-output make -C tests/
2121
tests/tests
22-
gcov tests/encoding.cpp tests/main.cpp tests/parsing.cpp
22+
- run:
23+
name: Generate coverage
24+
command: |
25+
cd tests
26+
gcov encoding.cpp main.cpp parsing.cpp
2327
- sonarcloud/scan
2428

2529
orbs:

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ sonar.sources=include,tests
1111
# Encoding of the source code. Default is default system encoding
1212
#sonar.sourceEncoding=UTF-8
1313
sonar.cfamily.build-wrapper-output=bw-output
14-
sonar.cfamily.gcov.reportsPath=.
14+
sonar.cfamily.gcov.reportsPath=tests

0 commit comments

Comments
 (0)