#!/bin/sh # script/check: run all checks. Our own extension to # scripts-to-rule-them-all. Must not modify any tracked files. Runs the # canonical order: the clean production build, then the lint build that # reports path warnings, then the read-only formatting check. # # The last two run inside Docker (they build stages of Dockerfile.lint), # so this script needs a working docker daemon. That is deliberate: # every lint run for this repo happens in a container, and there is no # host fallback to drop back to. set -eu SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)" main() { "$SCRIPT_DIR/test" "$SCRIPT_DIR/lint" "$SCRIPT_DIR/fmt-check" } main "$@"