Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7h4ZNF4BDUpJk3Zou
24 lines
998 B
Bash
Executable File
24 lines
998 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file in output/. Needs Docker (Testcontainers starts PostgreSQL 17) and JDK 25.
|
|
# 01-08, 12 written by the test suite (each test also asserts what it prints)
|
|
# 09, 10, 11 written by scripts that break a throwaway copy of the module on purpose
|
|
# 00 the code generator run (scripts/codegen.sh)
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mvn -B -q test
|
|
scripts/container-trap.sh >/dev/null
|
|
scripts/compile-errors.sh >/dev/null
|
|
scripts/drift-demo.sh >/dev/null
|
|
scripts/startup-warnings.sh >/dev/null
|
|
scripts/missing-flyway-module.sh >/dev/null
|
|
sums() { find src/main/java/com/ankurm/jooq/generated -name '*.java' | sort | xargs sha256sum | sha256sum | cut -c1-16; }
|
|
BEFORE="$(sums)"
|
|
{
|
|
echo "\$ scripts/codegen.sh"
|
|
scripts/codegen.sh 2>&1 | grep -v -E 'Picked up|^WARNING'
|
|
echo
|
|
echo "checksum of generated sources before: $BEFORE"
|
|
echo "checksum of generated sources after: $(sums)"
|
|
} > output/00-codegen-run.txt
|
|
echo "wrote:"; ls output
|