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
Branches
Tags
No related merge requests found
......@@ -23,7 +23,8 @@ variables:
.ctest_template: &ctest_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:
- test
......@@ -49,6 +50,13 @@ ctest:
ctest_python:
<<: *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}
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:
- schedules
- tags
......@@ -56,6 +64,11 @@ ctest_python:
allow_failure: false
tags:
- linux
artifacts:
paths:
- build_FaustLinuxPython/python_pyfaust_test_output.html
expire_in: '1 week'
ctest_matlab:
<<: *ctest_script
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment