Eli Bendersky 5487e88919 Add VERBOSE option to tools/build and generate.go
VERBOSE will be set by TRAVIS (but can also be set by user to diagnose slow
builds). Using an env var so that it automatically propagates to all the
sub-scripts and tools without having to pass it through tools/build explicitly.
2019-06-05 10:15:13 -07:00

18 lines
258 B
Bash
Executable File

#!/bin/bash
set -e
verbose() [[ -v VERBOSE ]]
verbose && echo "Running tests..."
tools/test
verbose && echo "Formatting code..."
tools/format
verbose && echo "Measuring line lengths..."
tools/measure
verbose && echo "Generating HTML..."
tools/generate