From 08ec9825e1961c0f398f5264029c1b3dc45adaf8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 26 Nov 2018 14:32:00 +0100 Subject: [PATCH] CI lint:clang-scan-build: make it mandatory! --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 49fd84b4a..a0c9e8411 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -92,14 +92,14 @@ lint:c: - docker lint:clang-scan-build: - allow_failure: true # for now it is just informative stage: test except: - master image: $CI_REGISTRY/knot/knot-resolver/ci/debian-unstable:knot-2.7 # newer Debian for newer Clang dependencies: [] # do not download build artifacts script: - - MAKEFLAGS="-k -j$(nproc)" SCAN_BUILD="scan-build -o scan-results --status-bugs -no-failure-reports" ./tests/clang_scan_build.sh make + - MAKEFLAGS="-k -j$(nproc)" SCAN_BUILD="scan-build -o scan-results --status-bugs -no-failure-reports" ./tests/clang_scan_build.sh make || true + - test "$(ls scan-results/*/report-*.html | wc -l)" = 7 # we have this many errors ATM :-) artifacts: when: on_failure expire_in: '1 day' -- 2.47.3