From 08467b4d7d0fc4c2d20fa2c0a93ba9b77a65e40f Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 25 Jun 2020 10:55:29 -0700 Subject: [PATCH] gitlab-ci: Build with -Werror The next commit will remove -Werror from the default autotools and meson builds, but we would like to continue treating warnings as errors in CI. --- .gitlab-ci/run_build.sh | 2 +- .gitlab-ci/run_meson.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci/run_build.sh b/.gitlab-ci/run_build.sh index 4055497..bab5c9e 100644 --- a/.gitlab-ci/run_build.sh +++ b/.gitlab-ci/run_build.sh @@ -7,7 +7,7 @@ set -o xtrace mkdir build cd build -../configure $CONFIGURE_OPTIONS +../configure --enable-werror $CONFIGURE_OPTIONS make V=1 VERBOSE=1 diff --git a/.gitlab-ci/run_meson.sh b/.gitlab-ci/run_meson.sh index 30c9126..7ed034d 100644 --- a/.gitlab-ci/run_meson.sh +++ b/.gitlab-ci/run_meson.sh @@ -6,9 +6,9 @@ set -o xtrace # Running a unity build (sometimes called a jumbo build) is both a useful thing # to test and reduces compile time. # -# Enable all auto-features to ensure that we're proprely testing all optional +# Enable all auto-features to ensure that we're properly testing all optional # dependencies. -meson build --unity=on --auto-features=enabled $CONFIGURE_OPTIONS +meson build -Dwerror=true --unity=on --auto-features=enabled $CONFIGURE_OPTIONS ninja -C build xvfb-run --auto-servernum ninja -C build test