parent
47bbf25fea
commit
e5fc342322
1 changed files with 18 additions and 0 deletions
@ -0,0 +1,18 @@ |
||||
include: |
||||
- https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-before.yml |
||||
- https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-applications-linux.yml |
||||
|
||||
build_clazy_clang_tidy: |
||||
stage: build |
||||
image: debian:testing |
||||
only: |
||||
- merge_requests |
||||
before_script: |
||||
- echo 'deb-src http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list |
||||
- apt-get update |
||||
- apt-get install --yes --no-install-recommends ninja-build clazy clang clang-tidy python python-yaml libkf5crash-dev libkf5purpose-dev libegl-dev jq |
||||
|
||||
script: |
||||
- srcdir=`pwd` && mkdir -p /tmp/pim_build && cd /tmp/pim_build && CC=clang CXX=clazy CXXFLAGS="-Werror -Wno-deprecated-declarations" cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja $srcdir && cat compile_commands.json | jq '[.[] | select(.file | contains("'"$srcdir"'"))]' > compile_commands.aux.json && cat compile_commands.aux.json | jq '[.[] | select(.file | contains("/synctex/")| not)]' > compile_commands.json && cp "$srcdir/.clang-tidy" . |
||||
- CLAZY_CHECKS="level0,level1,level2,no-ctor-missing-parent-argument,isempty-vs-count,qhash-with-char-pointer-key,raw-environment-function,qproperty-type-mismatch" ninja |
||||
- run-clang-tidy |
||||
Loading…
Reference in new issue