Update .gitlab-ci.yml file

This commit is contained in:
Theophyl Hoguet committed 2022-02-14 00:18:27 +01:00
1 parent 479dca38af
commit 55ea6a38d2
1 file changed
+2 -14
+2 -14
View File
@@ -32,7 +32,6 @@ test-v1-job: # This job runs in the test stage.
- echo "building project" - echo "building project"
- cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/c99-gcc .. - 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
- cd build
- echo "Running tests V1..." - echo "Running tests V1..."
- ctest -R v1 | tee ../test-v1-job.log - ctest -R v1 | tee ../test-v1-job.log
artifacts: 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. test-v2-job: # This job runs in the test stage.
needs: needs:
- job: test-v1-job - job: test-v1-job
artifacts: false artifacts: true
stage: test # It only starts when the job in the build stage completes successfully. stage: test # It only starts when the job in the build stage completes successfully.
script: 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 - cd build
- echo "Running tests V2..." - echo "Running tests V2..."
- ctest -R v2 | tee ../test-v2-job.log - ctest -R v2 | tee ../test-v2-job.log
@@ -66,15 +60,9 @@ coverage-job:
stage: coverage stage: coverage
needs: needs:
- job: test-v2-job - job: test-v2-job
artifacts: false artifacts: true
script: script:
- mkdir -p build
- cd 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 - make ExperimentalCoverage
- gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR} - gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR}
coverage: /^\s*lines:\s*\d+.\d+\%/ coverage: /^\s*lines:\s*\d+.\d+\%/