minetest/util/ci/clang-tidy.sh
2023-12-25 10:07:28 +01:00

14 lines
336 B
Bash
Executable File

#! /bin/bash -eu
cmake -B build -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DRUN_IN_PLACE=TRUE \
-DENABLE_GETTEXT=FALSE \
-DBUILD_SERVER=TRUE
cmake --build build --target GenerateVersion
./util/ci/run-clang-tidy.py \
-clang-tidy-binary=$CLANG_TIDY -p build \
-quiet -config="$(cat .clang-tidy)" \
'src/.*'