[nautilus/wip/oholy/ci-style-check: 26/29] 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: 26/29] ci: Add style-check job
- Date: Wed, 1 Apr 2020 08:32:57 +0000 (UTC)
commit e08bd7e14b928acce78a153b51226fb02c4ffed7
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]