[build] Add clang-tidy to Travis

This commit is contained in:
Konstantin Käfer
2015-12-03 14:42:28 +01:00
parent 673e87f651
commit e12cd6aef4
4 changed files with 29 additions and 1 deletions

17
scripts/linux/tidy.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
set -o pipefail
# Ensure mason is on the PATH
export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"
BUILDTYPE=${BUILDTYPE:-Release}
export CLANG_TIDY=clang-tidy-3.8
mapbox_time "config" \
make config
mapbox_time "tidy" \
make tidy