From 8c0a8d13b697bb25acb18d4bd394870bbe1ba508 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Fri, 26 Jun 2020 16:00:39 -0400 Subject: [PATCH 1/2] Fix paths for codecov Signed-off-by: Christophe Bedard --- .gitlab-ci.yml | 3 ++- codecov.yml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9efa96..2c16107 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,11 +38,12 @@ coverage: stage: report image: $BASE_IMAGE_ID:$DISTRO script: + - pip3 install -U codecov - colcon build --symlink-install --event-handlers console_cohesion+ --packages-up-to $PACKAGES_LIST --mixin coverage-pytest --cmake-args -DBUILD_TESTING=ON --no-warn-unused-cli - colcon test --event-handlers console_cohesion+ --packages-select $PACKAGES_LIST --mixin coverage-pytest - colcon test-result --all - - bash <(curl -s https://codecov.io/bash) - colcon coveragepy-result --packages-select $PACKAGES_LIST --verbose --coverage-report-args -m + - codecov --file coveragepy/.coverage allow_failure: true <<: *global_artifacts diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..14652eb --- /dev/null +++ b/codecov.yml @@ -0,0 +1,2 @@ +fixes: + - "/builds/micro-ROS/ros_tracing/tracetools_analysis/::" From ba69f41f9457997890a92e6ac2a6c6a277cb6ac8 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Fri, 26 Jun 2020 16:01:00 -0400 Subject: [PATCH 2/2] Add codecov badge to README Signed-off-by: Christophe Bedard --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 99b6f31..77961ce 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # tracetools_analysis [![pipeline status](https://gitlab.com/micro-ROS/ros_tracing/tracetools_analysis/badges/master/pipeline.svg)](https://gitlab.com/micro-ROS/ros_tracing/tracetools_analysis/commits/master) +[![codecov](https://codecov.io/gl/micro-ROS:ros_tracing/tracetools_analysis/branch/master/graph/badge.svg)](https://codecov.io/gl/micro-ROS:ros_tracing/tracetools_analysis) Analysis tools for [ROS 2 tracing](https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing).