#!/bin/sh # script/cibuild: run the CI build. The Dockerfile runs the format check, # the linter and the tests, so a successful build means they all pass. # --no-cache because a cached check step is a check that did not run. set -eu SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)" ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)" main() { cd "$ROOT" docker build --no-cache -t "$("$SCRIPT_DIR/projectname")" . } main "$@"