From 6d06c2841fd99d67d7e45ae93ba31b6afbb9fa82 Mon Sep 17 00:00:00 2001
From: Olivier BICHLER <olivier.bichler@cea.fr>
Date: Thu, 24 Aug 2023 16:11:04 +0200
Subject: [PATCH] Corrected coverage script dependency

---
 .gitlab/ci/coverage.gitlab-ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.gitlab/ci/coverage.gitlab-ci.yml b/.gitlab/ci/coverage.gitlab-ci.yml
index 4405ae434..5d149ff2b 100644
--- a/.gitlab/ci/coverage.gitlab-ci.yml
+++ b/.gitlab/ci/coverage.gitlab-ci.yml
@@ -1,10 +1,11 @@
 coverage:ubuntu_cpp:
   stage: coverage
-  needs: ["test:ubuntu_cpp"]
+  needs: ["build:ubuntu_cpp"]
   tags:
     - docker
   script:
     - cd build_cpp
+    - ctest --output-on-failure
     - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} --filter '\.\./include/' --filter '\.\./src/'
   coverage: /^\s*lines:\s*\d+.\d+\%/
   artifacts:
@@ -17,7 +18,7 @@ coverage:ubuntu_cpp:
 
 coverage:ubuntu_python:
   stage: coverage
-  needs: ["test:ubuntu_python"]
+  needs: ["build:ubuntu_python"]
   tags:
     - docker
   script:
-- 
GitLab