
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.
18 lines
258 B
Bash
Executable File
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
|