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



commit 6bacc9f92924d9b8f660a01a39f24a0326eb8182
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..35530a3d8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -136,3 +136,13 @@ triage:dry-run:
   only:
     - schedules
   when: manual
+
+style-check:
+  image: fedora:rawhide
+  script:
+    - dnf install -y uncrustify glib2-devel
+    - 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]