[nautilus/wip/oholy/ci-style-check: 3/4] ci: Add style-check job



commit 6462fdb634c244ee181d0873c4404e3bfd74a136
Author: Ondrej Holy <oholy redhat com>
Date:   Mon Feb 3 17:19:45 2020 +0100

    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 | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ce677b920..3afb19bab 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -52,6 +52,7 @@ stages:
 flatpak devel:
     extends: '.flatpak'
     image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
+    stage: test
     variables:
         MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.yml"
         MESON_ARGS: "-Dprofile=Devel -Dtests=all"
@@ -136,3 +137,12 @@ triage:dry-run:
   only:
     - schedules
   when: manual
+
+style-check:
+  image: fedora:rawhide
+  stage: test
+  script:
+    - dnf install -y uncrustify glib2-devel gcc findutils git
+    - 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]