summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2020-11-12 13:36:46 +0000
committerDaniel P. Berrangé <berrange@redhat.com>2020-11-12 13:36:46 +0000
commitfb2123c28b4615d0ae2e55f408056204ceb2178b (patch)
treed519b784dece6a2d81e5ffcee6b063d3db376758 /.gitlab-ci.yml
parent991ecb5de8c8603747a294efa980ec45e4f589d1 (diff)
downloadlibvirt-python-fb2123c28b4615d0ae2e55f408056204ceb2178b.tar.gz
Pass -Werror when building extension
This ensures we pick up warnings from new python headers or other problems. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 2 insertions, 0 deletions
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