summaryrefslogtreecommitdiff
path: root/util/ci/clang-tidy.sh
blob: bb4e99fef8e3f27b465b6d35820ebb5353ccf607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/bash -eu

mkdir -p cmakebuild
cd cmakebuild
cmake -DCMAKE_BUILD_TYPE=Debug \
	-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
	-DRUN_IN_PLACE=TRUE \
	-DENABLE_{GETTEXT,SOUND}=FALSE \
	-DBUILD_SERVER=TRUE ..
make GenerateVersion

cd ..

./util/ci/run-clang-tidy.py \
	-clang-tidy-binary=clang-tidy-9 -p cmakebuild \
	-quiet -config="$(cat .clang-tidy)" \
	'src/.*'