CI lint:clang-scan-build: make it mandatory!

parent 818a04d8
Pipeline #42605 canceled with stages
in 1 minute and 23 seconds
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment