aboutsummaryrefslogtreecommitdiff
path: root/util/travis/lint.sh
diff options
context:
space:
mode:
authorLoïc Blot <loic.blot@unix-experience.fr>2018-03-23 11:07:19 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2019-03-14 12:30:13 +0100
commita6a04c4b5b0cd475ea265b63ff6ff52daf66db42 (patch)
treef18daa7584cba90648b698adae943dfdd43571f7 /util/travis/lint.sh
parentaafbdd442f6bb6d6730fc7fdff76cbd0e3be301b (diff)
downloadhax-minetest-server-a6a04c4b5b0cd475ea265b63ff6ff52daf66db42.tar.gz
hax-minetest-server-a6a04c4b5b0cd475ea265b63ff6ff52daf66db42.zip
Update our tooling (Clang 5 -> 7, GCC 7 -> 8)
This change permits to use up-to-date compilers, clang-tidy and clang-format It also refactor the tidy/format step to drop the binary selection from scripts and perform it directly in travis
Diffstat (limited to 'util/travis/lint.sh')
-rw-r--r--util/travis/lint.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/util/travis/lint.sh b/util/travis/lint.sh
index 887e621f5..b3027c689 100644
--- a/util/travis/lint.sh
+++ b/util/travis/lint.sh
@@ -1,9 +1,7 @@
#! /bin/bash
function perform_lint() {
echo "Performing LINT..."
- if hash clang-format-5.0 2>/dev/null; then
- CLANG_FORMAT=clang-format-5.0
- else
+ if [ -z "${CLANG_FORMAT}" ]; then
CLANG_FORMAT=clang-format
fi
echo "LINT: Using binary $CLANG_FORMAT"