summaryrefslogtreecommitdiff
path: root/scripts/tidy.sh
blob: 424c82c3cd105265cfc3583617d692a30f141a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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