Merge branch 'main' of gitlab.emi.u-bordeaux.fr:pt2/teams-s4/tm07/lightup-07c into main

This commit is contained in:
Théophyl Hoguet committed 2022-02-14 15:26:33 +01:00
commit a4560e7975
2 files changed
+10 -13

No files matched your search

+9 -12
View File
@@ -14,11 +14,10 @@ build-job: # This job runs in the build stage, which runs first.
- 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
- make VERBOSE=ON -j 18 | tee ../build.log
artifacts:
expire_in: 10 minutes
paths:
- build/
- build.log
test-v1-job: # This job runs in the test stage.
@@ -31,13 +30,12 @@ test-v1-job: # This job runs in the test stage.
- 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
- make VERBOSE=ON -j 18
- echo "Running tests V1..."
- ctest -R v1 | tee ../test-v1-job.log
artifacts:
expire_in: 10 minutes
paths:
- build/
- test-v1-job.log
test-v2-job: # This job runs in the test stage.
@@ -50,33 +48,32 @@ test-v2-job: # This job runs in the test stage.
- 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
- make VERBOSE=ON -j 18
- echo "Running tests V2..."
- ctest -R v2 | tee ../test-v2-job.log
artifacts:
expire_in: 10 minutes
paths:
- build/
- test-v2-job.log
### coverage
coverage-job:
stage: coverage
tags:
- shell
needs:
- job: test-v1-job
artifacts: false
- job: test-v2-job
- job: build-job
artifacts: false
stage: coverage
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 test
- make ExperimentalCoverage
- gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR}
allow_failure: true
coverage: /^\s*lines:\s*\d+.\d+\%/
artifacts:
name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
+1 -1
View File
@@ -2,7 +2,7 @@
[![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)
[![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