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



commit ddb1dd88b8610d74f53867c7e25f661bf9f19396
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 | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 73260dae1..e1af2abe4 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,14 @@ triage:dry-run:
   only:
     - schedules
   when: manual
+
+style-check:
+  image: fedora:rawhide
+  stage: test
+  script:
+    - dnf install -y uncrustify glib2-devel gcc
+    - 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
+  only:
+    - merge_requests


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