summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2020-03-26 10:38:09 +0100
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2020-04-05 16:22:26 +0000
commitb945567a645dde505518f22888f03393bafd9481 (patch)
tree7af1f7e2b1d442ee50f1206d7fe63d2bcd210903 /.gitlab-ci.yml
parentf13903f5752575e9e70776c1566a4a5a813e09b7 (diff)
downloadnautilus-b945567a645dde505518f22888f03393bafd9481.tar.gz
ci: Add artifacts for style check job
It is not easy to find out why the style check job failed. Let's expose the style check job diff over artifacts to make it easier.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fdbbac46d..aeb699f86 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -79,7 +79,14 @@ triage:dry-run:
style check:
image: registry.gitlab.gnome.org/gnome/nautilus:latest
stage: test
+ artifacts:
+ name: 'Style check artifacts'
+ expose_as: 'Get style check diff here'
+ when: on_failure
+ paths:
+ - 'uncrustify.diff'
+ expire_in: 14 days
script:
- gcc data/lineup-parameters.c `pkg-config --cflags --libs gio-2.0 gio-unix-2.0` -o data/lineup-parameters
- LANG=C.utf8 data/run-uncrustify.sh
- - git diff --exit-code
+ - git diff --exit-code | tee uncrustify.diff