summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2020-02-03 17:19:45 +0100
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2020-04-05 16:22:26 +0000
commitf13903f5752575e9e70776c1566a4a5a813e09b7 (patch)
treee27fc7fa0be559f3e23b9eb8efd5c7fdc6cbd52c /.gitlab-ci.yml
parentfd2e7dfdead8e9046884ca21dcad034e160dae68 (diff)
downloadnautilus-f13903f5752575e9e70776c1566a4a5a813e09b7.tar.gz
ci: Add style-check job
The whole code was reformatted using uncrustify script, but MRs are not checked using the script. Let's add style-check job to prevent wrongly formated MRs to be merged.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b51983816..fdbbac46d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,3 +75,11 @@ triage:dry-run:
only:
- schedules
when: manual
+
+style check:
+ image: registry.gitlab.gnome.org/gnome/nautilus:latest
+ stage: test
+ 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