Files
dnswatcher/script/cibuild
T
sneak 34c195f65b
check / check (push) Successful in 58s
script: force lint and test to run in cibuild and docker (closes #115)
script/cibuild and script/docker were plain docker build. On an
unchanged tree the lint stage and the builder stage's make test came
from the layer cache, so the build reported success having linted
nothing and queried no live DNS. Both scripts now pass
--no-cache-filter=lint,builder, so those stages run on every build;
this mirrors script/lint, which already does the same for the lint
stage alone. Dependency downloads inside the disabled stages re-run,
which the issue accepts. No pins, .golangci.yml, or test behaviour
changed. README and TODO.md updated to match.

Model: opus-4-8 (implementation); opus-5-5 (rebase)
2026-09-28 20:02:26 +00:00

20 lines
591 B
Bash
Executable File

#!/bin/sh
# script/cibuild: run the CI build. The Dockerfile's lint stage runs
# make fmt-check and golangci-lint; its builder stage runs make test
# and make build.
#
# --no-cache-filter=lint,builder forces both of those stages to run on
# every invocation. Without it an unchanged tree serves them from the
# layer cache, reporting success having linted nothing and queried no
# live DNS. A successful build then implies those stages actually ran.
set -eu
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
main() {
cd "$ROOT"
docker build --no-cache-filter=lint,builder .
}
main "$@"