CI: fix running clang-tidy on full sources
[tinc] / .ci / tidy / run.sh
index 8af4767..d196975 100755 (executable)
@@ -3,7 +3,7 @@
 set -eu
 
 # Which paths to ignore.
-paths='src/solaris src/mingw'
+paths='src/solaris src/mingw src/gcrypt'
 
 case "$(uname -s)" in
 Linux)
@@ -27,9 +27,8 @@ for path in $paths; do
 done
 
 if ! [ -f compile_commands.json ]; then
-  # Running compiledb directly on this doesn't work on FreeBSD for some reason.
-  make -j2 all extra
-  compiledb -n make check
+  make clean
+  compiledb make all extra
 fi
 
 echo >&2 "Running clang-tidy without $paths"