[nautilus/wip/oholy/ci-style-check: 19/22] ci: Add style-check job
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/ci-style-check: 19/22] ci: Add style-check job
- Date: Sun, 5 Apr 2020 16:23:41 +0000 (UTC)
commit f13903f5752575e9e70776c1566a4a5a813e09b7
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 | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b51983816..fdbbac46d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,3 +75,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]