summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaël Bonithon <gael@xfce.org>2022-03-06 23:26:58 +0100
committerGaël Bonithon <gael@xfce.org>2022-03-06 23:59:23 +0100
commitb8368687d7c20c17c851106c89bc769ff58ad111 (patch)
tree757bf525b34524a92cebcca8fce054f757a381f4
parentc8ec007e98b609dd830f7665b9605a0894531b5c (diff)
downloadxfconf-master.tar.gz
ci: Upload artifacts on failure without specifying a directoryHEADmaster
`on_failure` allows to retrieve artifacts in case of failure, and only in that case: see https://docs.gitlab.com/ee/ci/yaml/index.html#artifactswhen The build takes place in a directory of the form `xfconf-${version}git${commit}/_build/sub` at the moment, but the `_build/sub` part could possibly change in the future, as it is added by Gitlab. So the easiest and most robust way seems to be to recover the `test-suite.log` files without worrying about the path. See also https://gitlab.xfce.org/xfce/xfconf/-/merge_requests/19#note_43611
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6ee9739..f926d50 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,5 +10,6 @@ distcheck:
script:
- xvfb-run -a make distcheck
artifacts:
+ when: on_failure
paths:
- - tests/*/test-suite.log
+ - '**/test-suite.log'