]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
CI lint:clang-scan-build: make it mandatory!
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 26 Nov 2018 13:32:00 +0000 (14:32 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 26 Nov 2018 15:01:56 +0000 (16:01 +0100)
.gitlab-ci.yml

index 49fd84b4a7481dc8f1390840fac4d27e36afd303..a0c9e841137847f452aa0b04380bd3e4fa0919b0 100644 (file)
@@ -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'