#!/bin/sh # script/cibuild: run the CI build. The linter needs an image of its # own, so it runs first; the Dockerfile then runs the formatting check, # the tests and the build, so a green run here means make check is # green. set -eu SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)" ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)" main() { cd "$ROOT" "$SCRIPT_DIR/lint" docker build . } main "$@"