From ddf70f3211adce95fa73daf7cf5388f2bd8f65fd Mon Sep 17 00:00:00 2001 From: Nick Dingle Date: Thu, 16 May 2024 09:03:15 +0000 Subject: [PATCH] Run coverage on every commit This will enable us to automatically gather coverage statistics over time. --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c73537b..86609f5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,11 +2,13 @@ image: gcc before_script: - apt-get update --yes - - apt-get install --yes cmake + - apt-get install --yes cmake gcovr build: tags: - arm64 script: - mkdir build - - cd build && cmake -DBUILD_TESTING=On .. && make -j check + - cd build && cmake -DBUILD_TESTING=On -DARMRAL_ENABLE_COVERAGE=On .. && make -j check && gcovr --gcov-ignore-parse-errors -r .. + coverage: /^TOTAL.*\s+(\d+\%)$/ + -- GitLab