-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
.codecov.yml
27 lines (23 loc) · 865 Bytes
/
.codecov.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
coverage:
precision: 1
# We put red at 50 to have a chance at some non-red build.
# I would be happy with 80 right now, so that's where the target is.
range: 50...80
ignore:
- "test-suite"
- "Examples"
# The process to get a correct report is a bit fiddly.
# This worked in the past, and is added here for reference:
#
# - clone the repo and mount it in a recent quantlib-devenv image;
# - run the following:
#
# apt update && apt install -y lcov curl git
# mkdir build
# cd build
# CXXFLAGS='-O1 -fprofile-arcs -ftest-coverage' LDFLAGS='-lgcov' cmake ..
# CXXFLAGS='-O1 -fprofile-arcs -ftest-coverage' LDFLAGS='-lgcov' make -j 4
# ./test-suite/quantlib-test-suite --log_level=message
# bash <(curl -s https://codecov.io/bash) -t @cc_token
#
# where the file `cc_token` contains the Codecov upload token.