gitlab CI: build a release with -Werror
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 27 Jun 2018 11:13:30 +0000 (21:13 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 27 Jun 2018 11:16:31 +0000 (21:16 +1000)
Any compiler warnings in the default build are likely caught by developers
anyway. Let's build one with -Werror and the release buildtype to catch
anything triggered by optimization or somesuch.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml

index f20c972..0b05db7 100644 (file)
@@ -495,6 +495,14 @@ fedora:28@default-build:
   <<: *fedora_28_template
   <<: *default_build
 
+fedora:28@default-build-release:
+  <<: *fedora_28_template
+  <<: *default_build
+  variables:
+    FEDORA_VERSION: 28
+    MESON_ARGS: "-Dbuildtype=release"
+    CFLAGS: "-Werror"
+
 # Below jobs are build option combinations. We only
 # run them on one image, they shouldn't fail on one distro
 # when they succeed on another.