diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/travis/common.sh | 8 | ||||
-rw-r--r-- | util/travis/lint.sh | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/util/travis/common.sh b/util/travis/common.sh index d040f639f..949540967 100644 --- a/util/travis/common.sh +++ b/util/travis/common.sh @@ -13,9 +13,9 @@ set_linux_compiler_env() { elif [[ "${COMPILER}" == "clang-3.6" ]]; then export CC=clang-3.6 export CXX=clang++-3.6 - elif [[ "${COMPILER}" == "clang-4.0" ]]; then - export CC=clang-4.0 - export CXX=clang++-4.0 + elif [[ "${COMPILER}" == "clang-5.0" ]]; then + export CC=clang-5.0 + export CXX=clang++-5.0 fi } @@ -45,7 +45,7 @@ TRIGGER_COMPILE_PATHS="src/.*\.(c|cpp|h)|CMakeLists.txt|cmake/Modules/|util/trav needs_compile() { RANGE="$TRAVIS_COMMIT_RANGE" - if [[ "$(git diff --name-only $RANGE -- 2>/dev/null)" == "" ]]; then + if [[ "$(git diff --name-only $RANGE -- 2>/dev/null)" == "" ]]; then RANGE="$TRAVIS_COMMIT^...$TRAVIS_COMMIT" echo "Fixed range: $RANGE" fi diff --git a/util/travis/lint.sh b/util/travis/lint.sh index 555cf3ebe..1174ed257 100644 --- a/util/travis/lint.sh +++ b/util/travis/lint.sh @@ -1,8 +1,8 @@ #! /bin/bash function perform_lint() { echo "Performing LINT..." - if hash clang-format-4.0 2>/dev/null; then - CLANG_FORMAT=clang-format-4.0 + if hash clang-format-5.0 2>/dev/null; then + CLANG_FORMAT=clang-format-5.0 else CLANG_FORMAT=clang-format fi |