Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ac43be3a authored by hhakim's avatar hhakim
Browse files

Add a JUnit XML format output for ctest and, upload it as HTML to gitlab as artifact.

This is a complement/alternative to CDash (whose website/server might fail).
parent 8479d482
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,8 @@ variables: ...@@ -23,7 +23,8 @@ variables:
.ctest_template: &ctest_script .ctest_template: &ctest_script
script: script:
- ctest -O ctest.log -S ./CDashConfScript.cmake -j4 - ctest -O ctest.log -S ./CDashConfScript.cmake -j4 --output-junit junit_output.xml
# junit output needs cmake/ctest >= 3.21
stages: stages:
- test - test
...@@ -49,6 +50,13 @@ ctest: ...@@ -49,6 +50,13 @@ ctest:
ctest_python: ctest_python:
<<: *ctest_script <<: *ctest_script
variables: {BUILD_WRAPPER_PYTHON: "ON", SLOW_TESTS: "OFF", DONT_PYPLOT_FAUST_TIME: "ON", NOCPPTESTS: "ON", NOPY2: "ON", BUILD_MULTITHREAD: "ON"} #, GIT_STRATEGY: none} variables: {BUILD_WRAPPER_PYTHON: "ON", SLOW_TESTS: "OFF", DONT_PYPLOT_FAUST_TIME: "ON", NOCPPTESTS: "ON", NOPY2: "ON", BUILD_MULTITHREAD: "ON"} #, GIT_STRATEGY: none}
after_script:
- python3 -m venv junit_venv # use default python3 in PATH (the same has been used in ctest building -- cf. CDashConfScript)
- source junit_venv/bin/activate
- pip install junit2html
- junit2html build_FaustLinuxPython/junit_output.xml build_FaustLinuxPython/python_pyfaust_test_output.html
- deactivate
- rm -Rf junit_venv
except: except:
- schedules - schedules
- tags - tags
...@@ -56,6 +64,11 @@ ctest_python: ...@@ -56,6 +64,11 @@ ctest_python:
allow_failure: false allow_failure: false
tags: tags:
- linux - linux
artifacts:
paths:
- build_FaustLinuxPython/python_pyfaust_test_output.html
expire_in: '1 week'
ctest_matlab: ctest_matlab:
<<: *ctest_script <<: *ctest_script
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment