Simplify clang-tidy invocation for Drone
authorStephan Beyer <s-beyer@gmx.net>
Mon, 6 Jul 2020 23:22:59 +0000 (01:22 +0200)
committerKevin Ottens <ervin@ipsquad.net>
Wed, 8 Jul 2020 12:08:41 +0000 (14:08 +0200)
Symlinking and running bash is not necessary.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
.drone.yml

index 78b525637e57dde58596495655038df7ef673b8e..96c75c1fa533dcb3fb7d3552fea480d516c7849c 100644 (file)
@@ -89,9 +89,7 @@ steps:
       chown -R test:test . &&
       su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test"
     # Static analysis with clang-tidy
-    - /bin/bash -c "
-      ln -s build/compile_commands.json . &&
-      run-clang-tidy-6.0"
+    - run-clang-tidy-6.0 -p build
 trigger:
   branch:
     - master