[nautilus/wip/oholy/ci-style-check: 1/2] ci: Add style-check job



commit 75d40b04561032a47112ce023594188812424825
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 73260dae1..86d2335c5 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:3.34
+    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
+    - data/run-uncrustify.sh
+    - git diff --exit-code


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