diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-14 13:16:41 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-14 22:38:40 +0300 |
commit | fe64238b4cd5a7da403a4f29a62b14234ecba569 (patch) | |
tree | c7dd7ec87cfff3d32d715c37a6db33b711f40ae8 /scripts | |
parent | deea0c41a2306dd0af505fdd4e6bfe1bf1bf7bbb (diff) | |
download | qtlocation-mapboxgl-fe64238b4cd5a7da403a4f29a62b14234ecba569.tar.gz |
[tidy] Switched to Travis CI
Fixes https://github.com/mapbox/mapbox-gl-native/issues/5341.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/clang-tidy.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/clang-tidy.sh b/scripts/clang-tidy.sh index ad86ed3f12..7665180cf7 100755 --- a/scripts/clang-tidy.sh +++ b/scripts/clang-tidy.sh @@ -5,7 +5,7 @@ set -o pipefail export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason" -CLANG_TIDY=${CLANG_TIDY:-$(mason prefix clang-tidy 3.8)/bin/clang-tidy} +CLANG_TIDY=${CLANG_TIDY:-$(mason prefix clang-tidy 3.8.0)/bin/clang-tidy} command -v ${CLANG_TIDY} >/dev/null 2>&1 || { echo "Can't find ${CLANG_TIDY} in PATH." @@ -18,9 +18,10 @@ command -v ${CLANG_TIDY} >/dev/null 2>&1 || { cd $1 function check_tidy() { + echo "Checking $0..." OUTPUT=$(${CLANG_TIDY} -p=$PWD $0 2>/dev/null) if [[ -n $OUTPUT ]]; then - echo "Error: A clang-tidy warning/error happened:" + echo "Caught clang-tidy warning/error:" echo -e "$OUTPUT" exit 1 fi |