2020-07-17 18:42:14 +00:00
|
|
|
##########################################################################
|
|
|
|
# This will allow the job to run whenever code events trigger it.
|
|
|
|
##########################################################################
|
|
|
|
.only_code:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- branches
|
|
|
|
- merge_requests
|
|
|
|
- pushes
|
|
|
|
except:
|
|
|
|
- schedules
|
|
|
|
|
|
|
|
##########################################################################
|
2022-12-17 00:56:43 +00:00
|
|
|
# Define a template for all the unit tests, since each one is run in a separate
|
2020-07-17 18:42:14 +00:00
|
|
|
# job to make the display nicer.
|
|
|
|
##########################################################################
|
|
|
|
.unit_test:
|
|
|
|
stage: test
|
|
|
|
when: on_success
|
2023-05-06 01:28:38 +00:00
|
|
|
variables:
|
|
|
|
BOOST_TEST_LOGGER: 'JUNIT,all,test_results.${TEST}.xml:HRF,warning'
|
|
|
|
CTEST_OUTPUT_ON_FAILURE: 1
|
2020-07-17 18:42:14 +00:00
|
|
|
script:
|
|
|
|
- cd build/linux/qa
|
2021-04-09 11:39:11 +00:00
|
|
|
- ctest -R qa_${TEST}
|
2020-07-17 18:42:14 +00:00
|
|
|
# GitLab supports displaying the results in the GUI through JUNIT artifacts
|
|
|
|
# (https://docs.gitlab.com/ee/ci/junit_test_reports.html)
|
2023-05-06 00:58:50 +00:00
|
|
|
# so we upload the JUNIT results.
|
2020-07-17 18:42:14 +00:00
|
|
|
artifacts:
|
2023-05-04 14:37:44 +00:00
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- build/linux/qa/**/*.log
|
2023-05-06 00:58:50 +00:00
|
|
|
- build/linux/qa/**/output/*
|
|
|
|
- build/linux/qa/**/*.xml
|
2020-07-17 18:42:14 +00:00
|
|
|
reports:
|
|
|
|
junit:
|
2023-05-04 14:37:44 +00:00
|
|
|
- build/linux/qa/**/*.xml
|