gitlab CI: keep the results of the check-commit job as artifact
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 28 Feb 2020 03:36:17 +0000 (13:36 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 2 Mar 2020 04:11:43 +0000 (14:11 +1000)
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>
.gitlab-ci.yml
.gitlab-ci/gitlab-ci.tmpl

index 2e2167cbd66e65faff74e6fa88dcf638ca6571f5..437c33aacccff8c5becb63209e7190cc1ccb09b8 100644 (file)
@@ -150,6 +150,9 @@ check-commit:
   variables:
     GIT_DEPTH: 100
   artifacts:
+    when: on_failure
+    paths:
+      - results.xml
     reports:
       junit: results.xml
 
index bffc7bf312e4a67a54891920f95b73964a93c728..4e5b3e0630d1fc0b762d7b077274f871cedc3fb3 100644 (file)
@@ -134,6 +134,9 @@ check-commit:
   variables:
     GIT_DEPTH: 100
   artifacts:
+    when: on_failure
+    paths:
+      - results.xml
     reports:
       junit: results.xml