diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-12 09:34:18 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-12 16:28:35 +0200 |
commit | 5441286a41336617b6ce9f37a41980d3941eb8ee (patch) | |
tree | 6c03ee81ab609d9df904fe4cb833987f6b4c521a /.gitlab-ci | |
parent | 2328523deb75b5415d5e625c80e0d30676999ec2 (diff) | |
download | pygobject-5441286a41336617b6ce9f37a41980d3941eb8ee.tar.gz |
ci: enable -Werror
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/test-docker.sh | 3 | ||||
-rwxr-xr-x | .gitlab-ci/test-msys2.sh | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitlab-ci/test-docker.sh b/.gitlab-ci/test-docker.sh index 6f6ea65f..1b0af3b4 100755 --- a/.gitlab-ci/test-docker.sh +++ b/.gitlab-ci/test-docker.sh @@ -12,7 +12,6 @@ export MALLOC_CHECK_=3 export MALLOC_PERTURB_=$((${RANDOM} % 255 + 1)) export G_SLICE="debug-blocks" export COVERAGE_FILE="${COV_DIR}/.coverage.${PYVER}" -export CFLAGS="-coverage -ftest-coverage -fprofile-arcs" export CCACHE_BASEDIR="$(pwd)" export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache" @@ -27,6 +26,8 @@ fi; python -m pip install git+https://github.com/pygobject/pycairo.git python -m pip install flake8 pytest pytest-faulthandler coverage +export CFLAGS="-coverage -ftest-coverage -fprofile-arcs -Werror" + if [[ "${PYIMPL}" == "PyPy" ]]; then python setup.py build_tests exit 0; diff --git a/.gitlab-ci/test-msys2.sh b/.gitlab-ci/test-msys2.sh index 9b44a8ff..f81064e6 100755 --- a/.gitlab-ci/test-msys2.sh +++ b/.gitlab-ci/test-msys2.sh @@ -38,7 +38,7 @@ export CCACHE_BASEDIR="$(pwd)" export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache" # coverage setup -export CFLAGS="-coverage -ftest-coverage -fprofile-arcs" +export CFLAGS="-coverage -ftest-coverage -fprofile-arcs -Werror" PYVER=$($PYTHON -c "import sys; sys.stdout.write(''.join(map(str, sys.version_info[:3])))") COV_DIR="$(pwd)/coverage" COV_KEY="${MSYSTEM}.${PYVER}" |