CI: Code check formating in CI

This commit is contained in:
Pavlo Solntsev
2019-11-11 14:21:25 -06:00
parent 7b77439841
commit e95f47c395
4 changed files with 151 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ stages:
- coverage
- analysis
- deploy
- style-check
cache:
paths:
@@ -13,6 +14,15 @@ variables:
G_MESSAGES_DEBUG: all
MESON_COMMON_OPTIONS: "--buildtype debug --fatal-meson-warnings"
style-check-diff:
image: registry.gitlab.gnome.org/gnome/glib/debian-stable:v5
stage: style-check
allow_failure: true
only:
- merge_request
script:
- git diff -U0 --no-color ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA} | ./clang-format-diff.py -binary "clang-format-7" -p1
fedora-x86_64:
image: registry.gitlab.gnome.org/gnome/glib/fedora:v4
stage: build