From edb5b92f89c2b28a36dfeb64f9e6c8afea5ca9c5 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 28 Feb 2020 13:36:17 +1000 Subject: [PATCH] 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 --- .gitlab-ci.yml | 3 +++ .gitlab-ci/gitlab-ci.tmpl | 3 +++ 2 files changed, 6 insertions(+) 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