Skip to content

Commit

Permalink
Replace Codecov by Azure Pipelines Code Coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen Koekkoek <jeroen@koekkoek.nl>
  • Loading branch information
k0ekk0ek authored and eboasson committed Oct 7, 2021
1 parent 040ab05 commit f187320
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 260 deletions.
78 changes: 0 additions & 78 deletions .azure/codecov.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .azure/templates/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ steps:
path: $(pip_cache)
name: cache_pip
- template: /.azure/templates/install-conan.yml
- bash: |
set -e -x
pip install gcovr --user --upgrade
condition: eq(variables['coverage'], 'on')
name: install_gcovr
- bash: |
set -e -x
if [[ "${ICEORYX}" = 'on' ]] ; then
Expand Down Expand Up @@ -126,3 +131,16 @@ steps:
${GENERATOR:+-G} "${GENERATOR}" -A "${PLATFORM}" -T "${TOOLSET}" "${INSTALLPREFIX}/share/CycloneDDS/examples/helloworld"
cmake --build . --config ${BUILD_TYPE} -- ${BUILD_TOOL_OPTIONS}
name: test
- bash: |
set -e -x
cd build
cmake --build . --config ${BUILD_TYPE} --target gcov -- ${BUILD_TOOL_OPTIONS}
gcovr --exclude '.*/tests/.*' --root "${BUILD_SOURCESDIRECTORY}" --xml-pretty --output coverage.xml .
condition: eq(variables['coverage'], 'on')
name: generate_code_coverage
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: $(Build.SourcesDirectory)/build/coverage.xml
condition: eq(variables['coverage'], 'on')
name: publish_code_coverage
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ if(SANITIZER)
endif()

find_package(codecov)
include(Codecov)
set(MEMORYCHECK_COMMAND_OPTIONS "--track-origins=yes --leak-check=full --trace-children=yes --child-silent-after-fork=yes --xml=yes --xml-file=TestResultValgrind_%p.xml --tool=memcheck --show-reachable=yes --leak-resolution=high")

# By default building the testing tree is enabled by including CTest, but
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build Status](https://dev.azure.com/eclipse-cyclonedds/cyclonedds/_apis/build/status/Pull%20requests?branchName=master)](https://dev.azure.com/eclipse-cyclonedds/cyclonedds/_build/latest?definitionId=4&branchName=master)
[![Coverity Status](https://scan.coverity.com/projects/19078/badge.svg)](https://scan.coverity.com/projects/eclipse-cyclonedds-cyclonedds)
[![Codecov](https://codecov.io/gh/eclipse-cyclonedds/cyclonedds/branch/master/graphs/badge.svg?branch=master)](https://codecov.io/github/eclipse-cyclonedds/cyclonedds?branch=master)
[![Coverage](https://img.shields.io/azure-devops/coverage/eclipse-cyclonedds/cyclonedds/4/master)](https://dev.azure.com/eclipse-cyclonedds/cyclonedds/_build/latest?definitionId=4&branchName=master)
[![License](https://img.shields.io/badge/License-EPL%202.0-blue)](https://choosealicense.com/licenses/epl-2.0/)
[![License](https://img.shields.io/badge/License-EDL%201.0-blue)](https://choosealicense.com/licenses/edl-1.0/)

Expand Down
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ strategy:
cc: gcc-10
'Ubuntu 18.04 LTS with GCC 7 (Debug, x86_64)':
image: ubuntu-18.04
coverage: on
conanfile: conanfile102.txt
cc: gcc-7
'Ubuntu 20.04 LTS with Clang 10 (Debug, x86_64)':
Expand Down
45 changes: 0 additions & 45 deletions cmake/Modules/Codecov.cmake

This file was deleted.

135 changes: 0 additions & 135 deletions cmake/Modules/Codecov/codecov.cmake

This file was deleted.

0 comments on commit f187320

Please sign in to comment.