From ea41066d09a14532ebd8c9b8759c0c25f13467d9 Mon Sep 17 00:00:00 2001
From: Fadi Imani <fadi.imani.etu@univ-lille.fr>
Date: Tue, 2 Apr 2024 05:19:44 +0200
Subject: [PATCH] big project

---
 .gitlab-ci.yml | 31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0423fb3..253749a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,7 @@ before_script:
 stages:
   - build
   - test
-  - coverage
+#  - coverage
 
 # Define the job for building the project
 build:
@@ -40,6 +40,13 @@ test:
     - ls -l bin
     - ./bin/ExampleTests
     - ls -l
+    - cd CMakeFiles/ExampleTests.dir/
+    - ls -l
+    - lcov -d . -c -o coverage.info
+    - lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
+    - lcov --list coverageFiltered.info
+  coverage: '/Total:\|\s*([0-9.]+%)\s.*$/'
+
 #    - cd CMakeFiles/ExampleTests.dir/
 #    - ls -l
 #    - lcov -d . -c -o coverage.info
@@ -53,17 +60,15 @@ test:
 #        - ./build/CMakeFiles/ExampleTests.dir/coverageFiltered.info
 #      when: always
 
-coverage:
-  stage: coverage
-  script:
-      - cd ./build/CMakeFiles/ExampleTests.dir/
-      - ls -l
-      - lcov -d . -c -o coverage.info
-      - lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
-      - lcov --list coverageFiltered.info
-  coverage: '/Total:\|\s*([0-9.]+%)\s.*$/'
-  when: on_success
-  dependencies:
-    - test
+#coverage:
+#  stage: coverage
+#  script:
+#      - cd ./build/CMakeFiles/ExampleTests.dir/
+#      - ls -l
+#      - lcov -d . -c -o coverage.info
+#      - lcov -r coverage.info */build/* */tests/* */c++/* -o coverageFiltered.info
+#      - lcov --list coverageFiltered.info
+#  coverage: '/Total:\|\s*([0-9.]+%)\s.*$/'
+
 
 
-- 
GitLab