Commit 981e8785 authored by Avinash Sonawane's avatar Avinash Sonawane

Set up scan-build

parent 19eed6d8
Pipeline #1488 passed with stage
in 1 minute and 20 seconds
include:
- project: 'xfce/xfce4-dev-tools'
file: '/ci/build_project.yml'
image: xfce/xfce-build:latest
workflow:
rules:
- if: '$CI_COMMIT_BRANCH'
pages:
script:
- export DEBIAN_FRONTEND="noninteractive"
- apt-get update -y && apt-get upgrade -y
- apt-get install -y clang clang-tools gawk
- export CFLAGS="-Wall -g -O0" LDFLAGS="-L/usr/local/lib" CC="clang"
- apt-get install -y libmagic-dev
- ./autogen.sh
- scan-build -v --use-cc=clang -enable-checker valist,security,nullability --status-bugs -o scan-build make -j$(nproc) || true
- mkdir -p public/scan-build; mv scan-build/*/* public/scan-build; rm -rf scan-build
artifacts:
paths:
- public
rules:
- if: '$CI_COMMIT_BRANCH == "gitlab-scan-build"'
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