From fb2123c28b4615d0ae2e55f408056204ceb2178b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 12 Nov 2020 13:36:46 +0000 Subject: Pass -Werror when building extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensures we pick up warnings from new python headers or other problems. Signed-off-by: Daniel P. Berrangé --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 372f2c0..6fd42c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,6 +34,7 @@ stages: - export LD_LIBRARY_PATH="$LIBDIR" - export PATH="$VROOT/bin:$PATH" - export PKG_CONFIG_PATH="$LIBDIR/pkgconfig" + - export CFLAGS="-Werror" script: - pushd "$PWD" - mkdir -p "$SCRATCH_DIR" @@ -54,6 +55,7 @@ stages: stage: builds before_script: - export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)" + - export CFLAGS="-Werror" script: - $PYTHON setup.py build - $PYTHON setup.py install -- cgit v1.2.1