diff options
| author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-02-28 13:36:17 +1000 |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-03-02 14:11:43 +1000 |
| commit | edb5b92f89c2b28a36dfeb64f9e6c8afea5ca9c5 (patch) | |
| tree | aa236ee86a0f2be10e822e60401a56209536fb3f | |
| parent | 13775b56e5b4c5593d0d01eedf1f01f232545a0e (diff) | |
| download | libevdev-edb5b92f89c2b28a36dfeb64f9e6c8afea5ca9c5.tar.gz | |
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>
| -rw-r--r-- | .gitlab-ci.yml | 3 | ||||
| -rw-r--r-- | .gitlab-ci/gitlab-ci.tmpl | 3 |
2 files changed, 6 insertions, 0 deletions
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 |
