summaryrefslogtreecommitdiff
path: root/scripts/tidy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tidy.sh')
-rwxr-xr-xscripts/tidy.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/tidy.sh b/scripts/tidy.sh
new file mode 100755
index 0000000000..424c82c3cd
--- /dev/null
+++ b/scripts/tidy.sh
@@ -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