Update .gitlab-ci.yml file
This commit is contained in:
1 parent
479dca38af
commit
55ea6a38d2
1 file changed
+2
-14
+2
-14
@@ -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+\%/
|
||||
|
||||
Reference in new issue
Block a user