From f13903f5752575e9e70776c1566a4a5a813e09b7 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Mon, 3 Feb 2020 17:19:45 +0100 Subject: 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. --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.1