From fb4e4f048ea8c53d20465ee17fddbfc0ae946b74 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Sun, 10 Jun 2018 18:33:33 +0200 Subject: Disable clang-tidy when no C/C++ files has been modified. --- util/travis/clangtidy.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/travis/clangtidy.sh b/util/travis/clangtidy.sh index 6f76765a1..7ed555693 100755 --- a/util/travis/clangtidy.sh +++ b/util/travis/clangtidy.sh @@ -1,3 +1,8 @@ +#!/bin/bash -e +. util/travis/common.sh + +needs_compile || exit 0 + if hash clang-tidy-5.0 2>/dev/null; then CLANG_TIDY=clang-tidy-5.0 else -- cgit v1.2.3