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.
This commit is contained in:
Ondrej Holy 2020-02-03 17:19:45 +01:00 committed by António Fernandes
parent fd2e7dfdea
commit f13903f575

View file

@ -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