From 4cf7438da20947d4200526d4caead30f03192d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophyl=20Hoguet?= Date: Sat, 12 Feb 2022 17:19:50 +0100 Subject: [PATCH 01/29] update gitignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c076002..8e93d1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +build/* build/ .vscode/ -*.txt \ No newline at end of file +.vscode/* +*.txt +!CMakeLists.txt \ No newline at end of file From 42ad7ea812c48dc60d809210f9953ca2c94c8b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophyl=20Hoguet?= Date: Sat, 12 Feb 2022 17:33:24 +0100 Subject: [PATCH 02/29] gitignore --- .gitignore | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8e93d1b..b13d574 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,4 @@ -build/* build/ .vscode/ -.vscode/* *.txt !CMakeLists.txt \ No newline at end of file From 294dc98ac7215c73d74568c51c8c895c1f742fc5 Mon Sep 17 00:00:00 2001 From: valentin carmona Date: Sun, 13 Feb 2022 16:23:07 +0100 Subject: [PATCH 03/29] =?UTF-8?q?impl=C3=A9menttation=20de=20la=20commande?= =?UTF-8?q?=20w=20et=20prise=20en=20compte=20du=20chargement=20de=20partie?= =?UTF-8?q?=20close#6=20close#5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game_text.c | 16 ++++++++++++++-- game_tools.c | 1 - 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/game_text.c b/game_text.c index b505ea0..ff57f3b 100644 --- a/game_text.c +++ b/game_text.c @@ -4,6 +4,7 @@ #include "game.h" #include "game_aux.h" #include "game_ext.h" +#include "game_tools.h" #define NBCHARERR 4 #define CHAR0ASCII 48 @@ -75,6 +76,7 @@ void printhelp(void) { printf("l : Place une ampoule (*) à la position (,).\n"); printf("m : Place une marque (-) à la position (,).\n"); printf("b : Place une case vide ( ) à la position (,).\n"); + printf("w : Sauvegardez votre partie au nom .\n"); } void usage(char* argv[]) { @@ -84,14 +86,19 @@ void usage(char* argv[]) { int main(int argc, char* argv[]) { game g; - if (argc == 1) + if (argc == 1){ // Create new game g = game_default(); - else + }else if (argc == 2){ + char* gameFile = argv[1]; + g = game_load(gameFile); + }else{ usage(argv); + } // init string for errors char stringError[game_nb_rows(g) * game_nb_cols(g) * NBCHARERR]; char c; + char* fileSave = (char*)malloc(sizeof(char)*20); // print game game_print(g); // test if game is over @@ -137,6 +144,11 @@ int main(int argc, char* argv[]) { case 'b': checkPlayMove(g, S_BLANK); break; + case 'w': + scanf(" %s", fileSave); + game_save(g, fileSave); + printf("Partie sauvegardée au nom %s\n", fileSave); + break; default: printf("Commande inconnue.\n"); } diff --git a/game_tools.c b/game_tools.c index 67e9ae2..08698a5 100644 --- a/game_tools.c +++ b/game_tools.c @@ -53,7 +53,6 @@ game game_load(char* filename) { } } fclose(f); - game_print(g1); return g1; } From 459f1faebe5f2d12a75b9fb1b61d7fd2dccec910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophyl=20Hoguet?= Date: Sun, 13 Feb 2022 22:30:20 +0100 Subject: [PATCH 04/29] test coverage --- .gitlab-ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2fcb85e..f92c675 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,14 +58,14 @@ coverage-job: - test-v2-job script: - cd build - - make ExperimentalCoverage | tee ../coverage.log + - make test + - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} + coverage: /^\s*lines:\s*\d+.\d+\%/ artifacts: - expire_in: 10 minutes - paths: - - build/ - - coverage.log - only: - - coverage + name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} + expire_in: 2 days + reports: + cobertura: build/coverage.xml ### cleanup project for security issues cleanup: From 82d6570818b2626dc30c7e0fc7fc12a84bb7b209 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 22:48:02 +0100 Subject: [PATCH 05/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f92c675..ee163b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,7 +58,6 @@ coverage-job: - test-v2-job script: - cd build - - make test - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} coverage: /^\s*lines:\s*\d+.\d+\%/ artifacts: From 3e8c2b22f9083e07d56de6d41b4bb99f64bce189 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:05:44 +0100 Subject: [PATCH 06/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee163b1..da0a52c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,9 +12,8 @@ build-job: # This job runs in the build stage, which runs first. stage: build script: - mkdir -p build - - cd build - - cmake -DCMAKE_BUILD_TYPE=DEBUG .. - - make VERBOSE=ON -j 4 | tee ../build.log + - cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" + - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ../build.log artifacts: expire_in: 10 minutes name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" @@ -58,6 +57,7 @@ coverage-job: - test-v2-job script: - cd build + - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target ExperimentalCoverage -j 18 - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} coverage: /^\s*lines:\s*\d+.\d+\%/ artifacts: From 26ff98bed71e1a96da92f208870f8623357050b6 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:11:28 +0100 Subject: [PATCH 07/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da0a52c..35608e0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,7 +13,7 @@ build-job: # This job runs in the build stage, which runs first. script: - mkdir -p build - cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" - - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ../build.log + - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log artifacts: expire_in: 10 minutes name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" @@ -57,6 +57,9 @@ coverage-job: - test-v2-job script: - cd build + - pwd + - ls + - echo ${CI_PROJECT_DIR} - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target ExperimentalCoverage -j 18 - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} coverage: /^\s*lines:\s*\d+.\d+\%/ From 30c6518d00bb7bd1a2bfd4e3d56796351315fd6f Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:16:11 +0100 Subject: [PATCH 08/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 35608e0..ea04a72 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,7 @@ build-job: # This job runs in the build stage, which runs first. stage: build script: - mkdir -p build - - cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" + - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log artifacts: expire_in: 10 minutes @@ -37,7 +37,7 @@ test-v1-job: # This job runs in the test stage. test-v2-job: # This job runs in the test stage. dependencies: - - build-job + - test-v1-job stage: test # It only starts when the job in the build stage completes successfully. script: - cd build @@ -53,7 +53,6 @@ test-v2-job: # This job runs in the test stage. coverage-job: stage: coverage dependencies: - - test-v1-job - test-v2-job script: - cd build From 7c36cc41a194860af3cb754172011c45e6b84319 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:24:41 +0100 Subject: [PATCH 09/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea04a72..e3af941 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,8 +22,9 @@ build-job: # This job runs in the build stage, which runs first. - build.log test-v1-job: # This job runs in the test stage. - dependencies: - - build-job + needs: + - job: build-job + artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: - cd build @@ -36,8 +37,9 @@ test-v1-job: # This job runs in the test stage. - test-v2-job.log test-v2-job: # This job runs in the test stage. - dependencies: - - test-v1-job + needs: + - job: test-v1-job + artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: - cd build @@ -52,8 +54,9 @@ test-v2-job: # This job runs in the test stage. ### coverage coverage-job: stage: coverage - dependencies: - - test-v2-job + needs: + - job: test-v2-job + artifacts: true script: - cd build - pwd From 626c7df4332247b2ba6831f2502976865de9f34f Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:26:59 +0100 Subject: [PATCH 10/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e3af941..257d692 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,10 +59,7 @@ coverage-job: artifacts: true script: - cd build - - pwd - - ls - - echo ${CI_PROJECT_DIR} - - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target ExperimentalCoverage -j 18 + - make ExperimentalCoverage - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} coverage: /^\s*lines:\s*\d+.\d+\%/ artifacts: From 25734cf3e48f559fa85bca458fe8a7e8ddddadd2 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:36:00 +0100 Subject: [PATCH 11/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 257d692..18f7fc9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,7 +38,7 @@ test-v1-job: # This job runs in the test stage. test-v2-job: # This job runs in the test stage. needs: - - job: test-v1-job + - job: build-job artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: @@ -55,10 +55,12 @@ test-v2-job: # This job runs in the test stage. coverage-job: stage: coverage needs: - - job: test-v2-job + - job: build-job artifacts: true script: - cd build + - ctest -R v1 + - ctest -R v2 - make ExperimentalCoverage - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} coverage: /^\s*lines:\s*\d+.\d+\%/ From 88d090643bc3e22a89bf544040c96f60a7981932 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:38:45 +0100 Subject: [PATCH 12/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18f7fc9..7615398 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,7 +38,7 @@ test-v1-job: # This job runs in the test stage. test-v2-job: # This job runs in the test stage. needs: - - job: build-job + - job: test-v1-job artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: @@ -55,7 +55,7 @@ test-v2-job: # This job runs in the test stage. coverage-job: stage: coverage needs: - - job: build-job + - job: test-v2-job artifacts: true script: - cd build From 72f69795346b52746f5cc147558cb08bf1b89f1f Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:48:02 +0100 Subject: [PATCH 13/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7615398..2a200bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,7 @@ build-job: # This job runs in the build stage, which runs first. test-v1-job: # This job runs in the test stage. needs: - - job: build-job + - job: test-v2-job artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: @@ -38,7 +38,7 @@ test-v1-job: # This job runs in the test stage. test-v2-job: # This job runs in the test stage. needs: - - job: test-v1-job + - job: build-job artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: From 336b267a975b56334c393bfdd37528c3dd2646b4 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:50:47 +0100 Subject: [PATCH 14/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a200bb..d5bbe08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,14 +16,13 @@ build-job: # This job runs in the build stage, which runs first. - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log artifacts: expire_in: 10 minutes - name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" paths: - build/ - build.log test-v1-job: # This job runs in the test stage. needs: - - job: test-v2-job + - job: build-job artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: @@ -34,11 +33,11 @@ test-v1-job: # This job runs in the test stage. expire_in: 10 minutes paths: - build/ - - test-v2-job.log + - test-v1-job.log test-v2-job: # This job runs in the test stage. needs: - - job: build-job + - job: test-v1-job artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: From 55955b5f43c7b6e391cf8e5a85c9cbb03e771a62 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Sun, 13 Feb 2022 23:53:15 +0100 Subject: [PATCH 15/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d5bbe08..ea331d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,9 +23,13 @@ build-job: # This job runs in the build stage, which runs first. test-v1-job: # This job runs in the test stage. needs: - job: build-job - artifacts: true + artifacts: false stage: test # It only starts when the job in the build stage completes successfully. script: + - mkdir -p build + - echo "building project" + - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" + - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log - cd build - echo "Running tests V1..." - ctest -R v1 | tee ../test-v1-job.log @@ -41,6 +45,10 @@ test-v2-job: # This job runs in the test stage. artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: + - mkdir -p build + - echo "building project" + - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" + - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log - cd build - echo "Running tests V2..." - ctest -R v2 | tee ../test-v2-job.log @@ -57,6 +65,10 @@ coverage-job: - job: test-v2-job artifacts: true script: + - mkdir -p build + - echo "building project" + - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" + - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log - cd build - ctest -R v1 - ctest -R v2 From 4b31c790717d69a1a30c925b45f046f6317104d4 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:01:03 +0100 Subject: [PATCH 16/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea331d4..ca7b3d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,7 +67,7 @@ coverage-job: script: - mkdir -p build - echo "building project" - - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" + - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log - cd build - ctest -R v1 From 92ed460fad1121cfcd6aeedfda17e2ccdf6e5598 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:03:24 +0100 Subject: [PATCH 17/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ca7b3d1..02db9d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,7 +42,7 @@ test-v1-job: # This job runs in the test stage. test-v2-job: # This job runs in the test stage. needs: - job: test-v1-job - artifacts: true + artifacts: false stage: test # It only starts when the job in the build stage completes successfully. script: - mkdir -p build @@ -63,7 +63,7 @@ coverage-job: stage: coverage needs: - job: test-v2-job - artifacts: true + artifacts: false script: - mkdir -p build - echo "building project" From 0e9a291f5dd77f106838f3124a70eedb1e9147e8 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:04:29 +0100 Subject: [PATCH 18/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 02db9d4..4e95def 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,7 +67,7 @@ coverage-job: script: - mkdir -p build - echo "building project" - - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" + - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log - cd build - ctest -R v1 From 9d2ed95c39244b6df1e1f61c5b9984b07f6a0c74 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:09:21 +0100 Subject: [PATCH 19/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e95def..5845f7e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,9 +67,9 @@ coverage-job: script: - mkdir -p build - echo "building project" - - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" - - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log - cd build + - cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. + - make - ctest -R v1 - ctest -R v2 - make ExperimentalCoverage From 56b90263f56c5f08114581484b34bf54f0024d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophyl=20Hoguet?= Date: Mon, 14 Feb 2022 00:15:00 +0100 Subject: [PATCH 20/29] cleaned cmake use option debug for --coverage ;-g --- CMakeLists.txt | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b69560..4d6f702 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,34 +1,37 @@ #version minimale de cmake nécessaire cmake_minimum_required(VERSION 2.6...3.13) -enable_testing() - #nom du projet -project (game_text) +project ("Lightup" C) + +# enable testing +enable_testing() include(CTest) #positionne la variable -set(CMAKE_C_FLAGS "-std=c99 -g -Wall -Wextra -Wpedantic -Werror") +set(CMAKE_C_FLAGS "-std=c99 -Wall -pthread -Wextra -Wunused-parameter -Wpedantic -Werror") +set(CMAKE_C_FLAGS_DEBUG "-g --coverage") # use CMake option: -DCMAKE_BUILD_TYPE=DEBUG +set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG") # use CMake option: -DCMAKE_BUILD_TYPE=RELEASE -#définit le nom du programme ainsi que -#ses sources +############################# SRC ############################# + +# game_text add_executable(game_text game_text.c) -add_executable(game_test game_test.c) - -#add_executable(history_test history_test.c) - -#les dépendances sont calculées automatiquement target_link_libraries(game_text game) + +# game tests +add_executable(game_test game_test.c) target_link_libraries(game_test game) -#target_link_libraries(history_test game) - -#Libraries +# libgame add_library (game game.c game_aux.c game_ext.c game_private.c history.c game_tools.c game_examples.c) -# Tests +# history tests +#add_executable(history_test history_test.c) +#target_link_libraries(history_test game) -# V1 + +############################# TEST V1 ############################# add_test(test_thoguet_game_new_v1 ./game_test game_new) add_test(test_thoguet_game_default_v1 ./game_test game_default) @@ -46,7 +49,8 @@ add_test(test_thperrier_game_is_blank_v1 ./game_test game_is_blank) add_test(test_thperrier_game_new_empty_v1 ./game_test game_new_empty) add_test(test_game_equal_v1 ./game_test equal) -# V2 + +############################# TEST V2 ############################# add_test(test_thoguet_game_get_square_v2 ./game_test game_get_square) add_test(test_thoguet_game_restart_v2 ./game_test game_restart) @@ -66,11 +70,15 @@ add_test(test_nnunes_game_nb_cols_v2 ./game_test game_nb_cols) add_test(test_nnunes_game_is_wrapping_v2 ./game_test game_is_wrapping) add_test(test_thoguet_game_print_v2 ./game_test game_print) -# V3 + +############################# TEST V3 ############################# add_test(test_thoguet_game_save_v3 ./game_test game_save) add_test(test_mfatih_game_load_v3 ./game_test game_load) -#Tests HISTORY + + +############################# TEST HISTORY ############################# + # add_test(test_history_history_alloc ./history_test history_alloc) # add_test(test_history_create_empty ./history_test history_create_empty) # add_test(test_history_delete_entire_history ./history_test history_delete_entire_history) From 2c0903ad004721faa568ab46da227cebc6bbacff Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:15:03 +0100 Subject: [PATCH 21/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5845f7e..2c0676d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,8 +12,8 @@ build-job: # This job runs in the build stage, which runs first. stage: build script: - mkdir -p build - - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" - - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log + - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. + - make VERBOSE=ON -j 18 | tee ./build.log artifacts: expire_in: 10 minutes paths: @@ -28,8 +28,8 @@ test-v1-job: # This job runs in the test stage. script: - mkdir -p build - echo "building project" - - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" - - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log + - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. + - make VERBOSE=ON -j 18 | tee ./build.log - cd build - echo "Running tests V1..." - ctest -R v1 | tee ../test-v1-job.log @@ -47,8 +47,8 @@ test-v2-job: # This job runs in the test stage. script: - mkdir -p build - echo "building project" - - cmake --no-warn-unused-cli -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc -H${CI_PROJECT_DIR} -B${CI_PROJECT_DIR}/build -G "Unix Makefiles" - - cmake --build ${CI_PROJECT_DIR}/build --config Debug --target all -j 18 | tee ./build.log + - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. + - make VERBOSE=ON -j 18 | tee ./build.log - cd build - echo "Running tests V2..." - ctest -R v2 | tee ../test-v2-job.log @@ -68,8 +68,8 @@ coverage-job: - mkdir -p build - echo "building project" - cd build - - cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. - - make + - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. + - make VERBOSE=ON -j 18 - ctest -R v1 - ctest -R v2 - make ExperimentalCoverage From cd8917747569f2eb255355bae13a960d58d43d35 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:15:35 +0100 Subject: [PATCH 22/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c0676d..d5eda66 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,7 @@ build-job: # This job runs in the build stage, which runs first. stage: build script: - mkdir -p build + - cd build - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. - make VERBOSE=ON -j 18 | tee ./build.log artifacts: From 479dca38af0418756fa634544ad23b6ff9d88dc4 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:16:18 +0100 Subject: [PATCH 23/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d5eda66..23cddc3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,7 @@ test-v1-job: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. script: - mkdir -p build + - cd build - echo "building project" - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. - make VERBOSE=ON -j 18 | tee ./build.log @@ -47,6 +48,7 @@ test-v2-job: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. script: - mkdir -p build + - cd build - echo "building project" - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. - make VERBOSE=ON -j 18 | tee ./build.log @@ -67,8 +69,8 @@ coverage-job: artifacts: false script: - mkdir -p build - - echo "building project" - cd build + - echo "building project" - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. - make VERBOSE=ON -j 18 - ctest -R v1 From 55ea6a38d27a3f1915123ac19dbe25040b841899 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:18:27 +0100 Subject: [PATCH 24/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 23cddc3..e78e42e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,7 +32,6 @@ test-v1-job: # This job runs in the test stage. - echo "building project" - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. - make VERBOSE=ON -j 18 | tee ./build.log - - cd build - echo "Running tests V1..." - ctest -R v1 | tee ../test-v1-job.log artifacts: @@ -44,14 +43,9 @@ test-v1-job: # This job runs in the test stage. test-v2-job: # This job runs in the test stage. needs: - job: test-v1-job - artifacts: false + artifacts: true stage: test # It only starts when the job in the build stage completes successfully. script: - - mkdir -p build - - cd build - - echo "building project" - - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. - - make VERBOSE=ON -j 18 | tee ./build.log - cd build - echo "Running tests V2..." - ctest -R v2 | tee ../test-v2-job.log @@ -66,15 +60,9 @@ coverage-job: stage: coverage needs: - job: test-v2-job - artifacts: false + artifacts: true script: - - mkdir -p build - cd build - - echo "building project" - - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. - - make VERBOSE=ON -j 18 - - ctest -R v1 - - ctest -R v2 - make ExperimentalCoverage - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} coverage: /^\s*lines:\s*\d+.\d+\%/ From 64b7af94610af86b89f355ce9850232aa4a446d1 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:22:26 +0100 Subject: [PATCH 25/29] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e78e42e..e909733 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,11 +42,15 @@ test-v1-job: # This job runs in the test stage. test-v2-job: # This job runs in the test stage. needs: - - job: test-v1-job - artifacts: true + - job: build-job + artifacts: false stage: test # It only starts when the job in the build stage completes successfully. script: + - mkdir -p build - cd build + - echo "building project" + - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. + - make VERBOSE=ON -j 18 | tee ./build.log - echo "Running tests V2..." - ctest -R v2 | tee ../test-v2-job.log artifacts: @@ -59,10 +63,18 @@ test-v2-job: # This job runs in the test stage. coverage-job: stage: coverage needs: + - job: test-v1-job + artifacts: false - job: test-v2-job - artifacts: true + artifacts: false script: + - mkdir -p build - cd build + - echo "building project" + - cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. + - make VERBOSE=ON -j 18 + - ctest -R v1 + - ctest -R v2 - make ExperimentalCoverage - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} coverage: /^\s*lines:\s*\d+.\d+\%/ From 9eab8c96385c538bdf8061c528d4d23604e8381d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophyl=20Hoguet?= Date: Mon, 14 Feb 2022 00:29:55 +0100 Subject: [PATCH 26/29] cleaned gameprint +clang + remove sol on q + usage --- game_text.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/game_text.c b/game_text.c index ff57f3b..77c5f2a 100644 --- a/game_text.c +++ b/game_text.c @@ -8,6 +8,9 @@ #define NBCHARERR 4 #define CHAR0ASCII 48 +#define GAME_PRINT_PLUS_LINE(g) \ + printf("--------------------------------------------------\n"); \ + game_print(g); /** * @brief Edit the stringError with all errors of g @@ -60,7 +63,7 @@ void checkPlayMove(game g, square s) { game_play_move(g, i, j, s); else printf("Coordonnées invalide.\n"); - game_print(g); + GAME_PRINT_PLUS_LINE(g); return; } printf("Commande inconnue.\n"); @@ -80,33 +83,34 @@ void printhelp(void) { } void usage(char* argv[]) { - printf("Usage : %s => Joue la partie par défaut\n", argv[0]); + printf("Usage : %s => Joue la partie par défaut\n", argv[0]); + printf(" %s => Charge la partie sur le fichier \n", argv[0]); exit(EXIT_FAILURE); } int main(int argc, char* argv[]) { game g; - if (argc == 1){ + if (argc == 1) { // Create new game g = game_default(); - }else if (argc == 2){ + } else if (argc == 2) { char* gameFile = argv[1]; g = game_load(gameFile); - }else{ + } else { usage(argv); } // init string for errors char stringError[game_nb_rows(g) * game_nb_cols(g) * NBCHARERR]; char c; - char* fileSave = (char*)malloc(sizeof(char)*20); + char* fileSave = (char*)malloc(sizeof(char) * 20); // print game - game_print(g); + GAME_PRINT_PLUS_LINE(g); // test if game is over while (!game_is_over(g)) { // print errors if (checkerrors(g, stringError)) - printf("Il y a un problème case(s): %s\n", stringError); - printf("Entrez une commande (h pour afficher l'aide): "); + printf("\nIl y a un problème case(s): %s\n", stringError); + printf("\nEntrez une commande (h pour afficher l'aide): "); // scan the first command without args if (scanf(" %c", &c)) { switch (c) { @@ -115,25 +119,20 @@ int main(int argc, char* argv[]) { break; case 'r': game_restart(g); - printf("Partie réinitialisé avec succes !\n"); - game_print(g); + printf("\nPartie réinitialisé avec succes !\n"); + GAME_PRINT_PLUS_LINE(g); break; case 'q': - printf("Solution: \n"); - game solution = game_default_solution(); - game_print(solution); - game_delete(solution); game_delete(g); - printf("shame\n"); + printf("shame on you :o\n"); return EXIT_SUCCESS; - break; case 'z': game_undo(g); - game_print(g); + GAME_PRINT_PLUS_LINE(g); break; case 'y': game_redo(g); - game_print(g); + GAME_PRINT_PLUS_LINE(g); break; case 'l': checkPlayMove(g, S_LIGHTBULB); @@ -148,6 +147,7 @@ int main(int argc, char* argv[]) { scanf(" %s", fileSave); game_save(g, fileSave); printf("Partie sauvegardée au nom %s\n", fileSave); + GAME_PRINT_PLUS_LINE(g); break; default: printf("Commande inconnue.\n"); From 2230954ea46a6731bbd85805cd152c846ecd42f3 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:45:28 +0100 Subject: [PATCH 27/29] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b781c4a..bcc1de0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -# lightup-07c +# README +[![pipeline status](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/pipeline.svg)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) +[![coverage report](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/coverage.svg)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) + +## lightup-07c Projet Techno From ebf927a9eab51536c3b3fff10cd79e87331f7d58 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:51:42 +0100 Subject: [PATCH 28/29] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bcc1de0..a0aad1b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # README -[![pipeline status](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/pipeline.svg)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) -[![coverage report](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/coverage.svg)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) +[![Tests V1](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/pipeline.svg?job=test-v1-job&key_text=Tests+V1)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) +[![Tests V2](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/pipeline.svg?job=test-v1-job&key_text=Tests+V2)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) +[![Coverage report](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/coverage.svg?min_good=90&min_acceptable=80&min_medium=70)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) + ## lightup-07c From de01aaad6695d7c299799f5fbaa3f5b2c5e57f28 Mon Sep 17 00:00:00 2001 From: Theophyl Hoguet Date: Mon, 14 Feb 2022 00:52:44 +0100 Subject: [PATCH 29/29] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a0aad1b..4879c21 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # README +[![Build](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/pipeline.svg?job=build-job&key_text=Build)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) [![Tests V1](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/pipeline.svg?job=test-v1-job&key_text=Tests+V1)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) [![Tests V2](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/pipeline.svg?job=test-v1-job&key_text=Tests+V2)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main) [![Coverage report](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/badges/main/coverage.svg?min_good=90&min_acceptable=80&min_medium=70)](https://gitlab.emi.u-bordeaux.fr/pt2/teams-s4/tm07/lightup-07c/-/commits/main)