gitlab CI: keep the results of the check-commit job as artifact

Due to how pytest is used, we don't get the actual errors printed in the
commandline log if this job fails. This doesn't matter in merge requests where
the results are displayed nicely but where there's no merge request we can't
get this info out at all. So let's simply store the xml file for an easy
check.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-02-28 13:36:17 +10:00
parent 13775b56e5
commit edb5b92f89
2 changed files with 6 additions and 0 deletions

View file

@ -150,6 +150,9 @@ check-commit:
variables:
GIT_DEPTH: 100
artifacts:
when: on_failure
paths:
- results.xml
reports:
junit: results.xml

View file

@ -134,6 +134,9 @@ check-commit:
variables:
GIT_DEPTH: 100
artifacts:
when: on_failure
paths:
- results.xml
reports:
junit: results.xml