Skip to content

Commit 28ea170

Browse files
committed
ci: Collect and upload spectests coverage
This modifies "coverage-gcc" job. All Fizzy tests are uploaded to codecov with flag "unittests". Additionally, the coverage from the spectests run is uploaded with "spectests" flag. Also update codecov config: use true/false, disable require_ci_to_pass, enable "impacted files" and "flags" GitHub comment.
1 parent 753289d commit 28ea170

File tree

2 files changed

+29
-11
lines changed

2 files changed

+29
-11
lines changed

circle.yml

+21-7
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,18 @@ commands:
138138
working_directory: ~/build
139139
command: ctest -E 'unittests|smoketests' -j4 --schedule-random --output-on-failure
140140

141+
collect_coverage_gcc:
142+
description: "Collect coverage data (GCC)"
143+
steps:
144+
- run:
145+
name: "Collect coverage data (GCC)"
146+
working_directory: ~/build
147+
command: |
148+
lcov --capture --directory . --output-file coverage.lcov --exclude='/usr/include/*' --exclude="$HOME/.hunter/*" --exclude="$PWD/_deps/*"
149+
lcov --zerocounters --directory .
150+
rm -rf coverage
151+
genhtml coverage.lcov --output-directory coverage --title Fizzy
152+
141153
collect_coverage_clang:
142154
description: "Collect coverage data (Clang)"
143155
parameters:
@@ -371,17 +383,19 @@ jobs:
371383
configuration_name: "Coverage"
372384
build_type: Coverage
373385
- test
374-
- run:
375-
name: "Create coverage report"
376-
working_directory: ~/build
377-
command: |
378-
lcov -c -d . -o coverage.lcov --exclude='/usr/include/*' --exclude="$HOME/.hunter/*" --exclude="$PWD/_deps/*"
379-
genhtml coverage.lcov -o coverage -t Fizzy
386+
- collect_coverage_gcc
380387
- store_artifacts:
381388
path: ~/build/coverage
382-
destination: coverage
389+
destination: coverage-unittests
383390
- upload_coverage:
384391
flags: unittests
392+
- spectest
393+
- collect_coverage_gcc
394+
- store_artifacts:
395+
path: ~/build/coverage
396+
destination: coverage-spectests
397+
- upload_coverage:
398+
flags: spectests
385399

386400
sanitizers-clang:
387401
executor: linux-clang-latest

codecov.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
codecov:
2-
require_ci_to_pass: yes
2+
require_ci_to_pass: false
33

44
coverage:
55
status:
6-
project: no
7-
patch: no
6+
project: false
7+
patch: false
88

99
comment:
10-
layout: "diff"
10+
layout: "diff, flags, files"
11+
12+
flags:
13+
spectests:
14+
joined: false

0 commit comments

Comments
 (0)