Variables should be getting merged, before_script wont

This commit is contained in:
Marek Roszko 2023-05-05 21:28:38 -04:00
parent 512e5a30ad
commit df35452a98
1 changed files with 3 additions and 5 deletions

View File

@ -17,11 +17,9 @@
.unit_test: .unit_test:
stage: test stage: test
when: on_success when: on_success
# We define this using a before script because GitLab cannot merge variable variables:
# definitions across inheritance (so the variables block from this would disappear) BOOST_TEST_LOGGER: 'JUNIT,all,test_results.${TEST}.xml:HRF,warning'
before_script: CTEST_OUTPUT_ON_FAILURE: 1
- export BOOST_TEST_LOGGER='JUNIT,all,test_results.${TEST}.xml:HRF,warning'
- export CTEST_OUTPUT_ON_FAILURE=1
script: script:
- cd build/linux/qa - cd build/linux/qa
- ctest -R qa_${TEST} - ctest -R qa_${TEST}