File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
os : linux
2
2
language : cpp
3
3
compiler : gcc
4
+ sudo : required
4
5
5
6
notifications :
6
7
email : false
@@ -12,7 +13,12 @@ addons:
12
13
- gcovr
13
14
- lcov
14
15
16
+ install :
17
+ - git clone https://github.com/azubieta/python-codacy-coverage.git
18
+ - pushd python-codacy-coverage; sudo python setup.py install; popd;
15
19
script :
16
20
- cmake . -DCMAKE_BUILD_TYPE=Debug -DXDG_UTILS_TESTS=On -DXDG_UTILS_CODE_COVERAGE=On
17
21
- make
18
22
- ctest -V
23
+ - make code_coverage_report
24
+ - python-codacy-coverage -vr code_coverage_report.xml -l cpp
Original file line number Diff line number Diff line change 1
1
# Xdg Utils C++
2
2
[ ![ Build Status] ( https://travis-ci.org/azubieta/xdg-utils.svg?branch=master )] ( https://travis-ci.org/azubieta/xdg-utils )
3
3
[ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Grade/9e34fda85c3d46ab83b44071d145a917 )] ( https://www.codacy.com/app/azubieta/xdg-utils?utm_source=github.com& ; utm_medium=referral& ; utm_content=azubieta/xdg-utils& ; utm_campaign=Badge_Grade )
4
+ [ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Coverage/9e34fda85c3d46ab83b44071d145a917 )] ( https://www.codacy.com/app/azubieta/xdg-utils?utm_source=github.com& ; utm_medium=referral& ; utm_content=azubieta/xdg-utils& ; utm_campaign=Badge_Coverage )
4
5
5
6
Implementation of the Free Desktop Standards in C++.
6
7
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ endif()
10
10
11
11
if (XDG_UTILS_CODE_COVERAGE)
12
12
set (COVERAGE_LCOV_EXCLUDES '${PROJECT_SOURCE_DIR} /tests/*' '${PROJECT_SOURCE_DIR} /*build *' '/usr/*')
13
- setup_target_for_coverage_lcov (
13
+ SETUP_TARGET_FOR_COVERAGE_GCOVR_XML (
14
14
NAME code_coverage_report
15
15
EXECUTABLE ctest -V -j ${PROCESSOR_COUNT}
16
16
)
You can’t perform that action at this time.
0 commit comments