summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-03-01 17:09:22 +0700
committerEmmanuele Bassi <ebassi@gnome.org>2018-03-01 17:09:22 +0700
commit78c130543cd90a8c84c3260a9415c4562db6e9f9 (patch)
tree3b1bb6376c05336b511332d2e81ec5743ccb3823 /.gitlab-ci.yml
parent4b33cc5f897e8feb354438779371ef1e7e7fda6a (diff)
downloadgtk+-78c130543cd90a8c84c3260a9415c4562db6e9f9.tar.gz
ci: Store the logs on build failure
We should save the logs directory when the CI pipeline fails, so that we have a chance at debugging the failure.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d559ef3cb..d2469d1aaf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,4 +20,9 @@ cache:
build:
stage: build
script:
- - bash -x ./.gitlab-ci/test-docker.sh
+ - bash -x ./.gitlab-ci/test-docker.sh
+ artifacts:
+ when: on_failure
+ name: "gtk-${CI_COMMIT_REF_NAME}"
+ paths:
+ - "${CI_PROJECT_DIR}/_build_full/meson-logs"