summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-02-11 13:28:16 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2020-02-11 14:47:22 +0000
commit76aba1f0460fde2115842e8480d700f1e5418138 (patch)
treef0314dde82f376f702b7a13378c6806d089a2a3f /.gitlab-ci.yml
parent59028d7d0f3a607949a1c1bc97b9cd6d3a653140 (diff)
downloadgtk+-76aba1f0460fde2115842e8480d700f1e5418138.tar.gz
ci: Add a style check pass
We should at least try to get the style check done by a machine, as opposed to have humans go through merge requests with coding style nitpicks.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml21
1 files changed, 18 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 26e4c0ea10..58db3d7a4e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,5 @@
stages:
+ - style-check
- build
- flatpak
- deploy
@@ -19,8 +20,22 @@ variables:
G_MESSAGES_DEBUG: "all"
CCACHE_DISABLE: "true"
+.only-default:
+ only:
+ - branches
+ except:
+ - tags
+
+style-check-diff:
+ extends: .only-default
+ image: registry.gitlab.gnome.org/gnome/gtk/fedora:v13
+ stage: style-check
+ allow_failure: true
+ script:
+ - .gitlab-ci/run-style-check-diff.sh
+
fedora-x86_64:
- image: registry.gitlab.gnome.org/gnome/gtk/fedora:v12
+ image: registry.gitlab.gnome.org/gnome/gtk/fedora:v13
stage: build
variables:
EXTRA_MESON_FLAGS: "--buildtype=debug --default-library=both"
@@ -52,7 +67,7 @@ fedora-x86_64:
<<: *cache-paths
release-build:
- image: registry.gitlab.gnome.org/gnome/gtk/fedora:v12
+ image: registry.gitlab.gnome.org/gnome/gtk/fedora:v13
stage: build
variables:
EXTRA_MESON_FLAGS: "--buildtype=release"
@@ -151,7 +166,7 @@ flatpak-master:icon-browser:
<<: *flatpak-master
pages:
- image: registry.gitlab.gnome.org/gnome/gtk/fedora:v12
+ image: registry.gitlab.gnome.org/gnome/gtk/fedora:v13
stage: deploy
variables:
EXTRA_MESON_FLAGS: "--buildtype=release"