From: Peter Hutterer Date: Fri, 28 Feb 2020 03:36:17 +0000 (+1000) Subject: gitlab CI: keep the results of the check-commit job as artifact X-Git-Tag: libevdev-1.9.0~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edb5b92f89c2b28a36dfeb64f9e6c8afea5ca9c5;p=platform%2Fupstream%2Flibevdev.git 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 --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e2167c..437c33a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -150,6 +150,9 @@ check-commit: variables: GIT_DEPTH: 100 artifacts: + when: on_failure + paths: + - results.xml reports: junit: results.xml diff --git a/.gitlab-ci/gitlab-ci.tmpl b/.gitlab-ci/gitlab-ci.tmpl index bffc7bf..4e5b3e0 100644 --- a/.gitlab-ci/gitlab-ci.tmpl +++ b/.gitlab-ci/gitlab-ci.tmpl @@ -134,6 +134,9 @@ check-commit: variables: GIT_DEPTH: 100 artifacts: + when: on_failure + paths: + - results.xml reports: junit: results.xml