Skip to content

Commit fb66242

Browse files
authored
Merge pull request azubieta#2 from azubieta/post_code_coverage_results
post code coverage results to codacy
2 parents 3e7424e + e29fd87 commit fb66242

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
os: linux
22
language: cpp
33
compiler: gcc
4+
sudo: required
45

56
notifications:
67
email: false
@@ -12,7 +13,12 @@ addons:
1213
- gcovr
1314
- lcov
1415

16+
install:
17+
- git clone https://github.com/azubieta/python-codacy-coverage.git
18+
- pushd python-codacy-coverage; sudo python setup.py install; popd;
1519
script:
1620
- cmake . -DCMAKE_BUILD_TYPE=Debug -DXDG_UTILS_TESTS=On -DXDG_UTILS_CODE_COVERAGE=On
1721
- make
1822
- ctest -V
23+
- make code_coverage_report
24+
- python-codacy-coverage -vr code_coverage_report.xml -l cpp

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Xdg Utils C++
22
[![Build Status](https://travis-ci.org/azubieta/xdg-utils.svg?branch=master)](https://travis-ci.org/azubieta/xdg-utils)
33
[![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)
45

56
Implementation of the Free Desktop Standards in C++.
67

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ endif()
1010

1111
if(XDG_UTILS_CODE_COVERAGE)
1212
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(
1414
NAME code_coverage_report
1515
EXECUTABLE ctest -V -j ${PROCESSOR_COUNT}
1616
)

0 commit comments

Comments
 (0)