gitlab CI: build a release with -Werror

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>
This commit is contained in:
Peter Hutterer 2018-06-27 21:13:30 +10:00
parent 3a1f3b754e
commit f2cf226f15

View 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.