[nautilus/wip/oholy/ci-style-check: 2/5] ci: Add style-check job
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/ci-style-check: 2/5] ci: Add style-check job
- Date: Thu, 26 Mar 2020 12:59:49 +0000 (UTC)
commit 380052173ec9d352adaa388191ef943a0717f343
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 | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e00d69ca9..3e21eebb9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,6 +14,7 @@ flatpak devel:
extends: '.flatpak'
stage: test
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"
@@ -76,3 +77,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]