From 7ed6d1944a7517220b398179ee140d34a4be7c27 Mon Sep 17 00:00:00 2001 From: Fadi Imani <fadi.imani.etu@univ-lille.fr> Date: Tue, 2 Apr 2024 05:27:46 +0200 Subject: [PATCH] big project --- .gitlab-ci.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18bc956..3a6393c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,7 @@ stages: - coverage # Define the job for building the project -build: +job:build: stage: build script: @@ -27,7 +27,7 @@ build: -test: +job:test: stage: test script: - pwd @@ -48,20 +48,29 @@ test: # coverage: '/Total:\|\s*([0-9.]+%)\s.*$/' -coverage: +job:coverage: stage: coverage script: - - cp tests/test.txt build - - cp tests/stopWords.txt build - - cd build - - ./bin/ExampleTests +# - cp tests/test.txt build +# - cp tests/stopWords.txt build +# - cd build +# - ./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 + - mkdir report1 + - genhtml cov.info -o report coverage: '/Total:\|\s*([0-9.]+%)\s.*$/' + when: on_success + dependencies: + - job:test + artifacts: + paths: + - report/ + -- GitLab