Mentions légales du service

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

Make ctest_python ci job fail on gitlab if any (unit) test have failed.

parent 7500fb61
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,9 @@ ctest_python: ...@@ -57,6 +57,9 @@ ctest_python:
- junit2html build_FaustLinuxPython/junit_output.xml build_FaustLinuxPython/python_pyfaust_test_output.html - junit2html build_FaustLinuxPython/junit_output.xml build_FaustLinuxPython/python_pyfaust_test_output.html
- deactivate - deactivate
- rm -Rf junit_venv - rm -Rf junit_venv
# fail the ci job if any ctest test (or unit test) have failed
- FAILED_TESTS=$(grep -B 1 'Outcome:.*Failed' junit_output.xml.html | sed -ne 's%.*Test case:.*<b>\(.*\)</b>.*%\1%p')
- if [ -n "$FAILED_TESTS" ]; then echo "Failed tests: $FAILED_TESTS"; exit 1;fi
except: except:
- schedules - schedules
- tags - tags
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment