summaryrefslogtreecommitdiff
path: root/util/travis/before_install.sh
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2018-04-01 23:57:55 +0200
committerGitHub <noreply@github.com>2018-04-01 23:57:55 +0200
commitd88c4e18221c7857a7bfe2fbb0f5f6bef1da8d29 (patch)
tree420ab20cdda66c95a344e35ef1df20faf74852e0 /util/travis/before_install.sh
parent93eb0794d6f7366df5fb375855b2e5e5888304c6 (diff)
downloadminetest-d88c4e18221c7857a7bfe2fbb0f5f6bef1da8d29.tar.gz
minetest-d88c4e18221c7857a7bfe2fbb0f5f6bef1da8d29.tar.bz2
minetest-d88c4e18221c7857a7bfe2fbb0f5f6bef1da8d29.zip
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
Diffstat (limited to 'util/travis/before_install.sh')
-rwxr-xr-xutil/travis/before_install.sh4
1 files changed, 2 insertions, 2 deletions
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