From d88c4e18221c7857a7bfe2fbb0f5f6bef1da8d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Sun, 1 Apr 2018 23:57:55 +0200 Subject: LINT: add clang-tidy step (#6295) * Implement new travis clang-tidy build step * This step enable some rules and enforce one rule as error * This permits to have some C++ quality rules based on clang & clang contributor guidelines * Fix clang-tidy reported problems on push_back -> emplace_back --- util/travis/before_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/travis/before_install.sh') diff --git a/util/travis/before_install.sh b/util/travis/before_install.sh index afc16c332..19c40ef90 100755 --- a/util/travis/before_install.sh +++ b/util/travis/before_install.sh @@ -10,8 +10,8 @@ fi needs_compile || exit 0 -if [[ $PLATFORM == "Unix" ]]; then - if [[ $TRAVIS_OS_NAME == "linux" ]]; then +if [[ $PLATFORM == "Unix" ]] || [[ $CLANG_TIDY == "1" ]]; then + if [[ $TRAVIS_OS_NAME == "linux" ]] || [[ $CLANG_TIDY == "1" ]]; then install_linux_deps else install_macosx_deps -- cgit v1.2.3