#!/usr/bin/env bash # Regenerates every file under docs/output/. Takes about three minutes: two three-replica runs of # 30 seconds each plus the test suite, and three JVMs need roughly ten seconds to start on a # small box. set -euo pipefail cd "$(dirname "$0")/.." mkdir -p docs/output scripts/postgres.sh start >/dev/null mvn -B -q -DskipTests package mvn -B test 2>&1 | grep -E 'Running |Tests run:|BUILD ' > docs/output/tests.txt scripts/three-replicas.sh unlocked > docs/output/three-replicas-unlocked.txt scripts/three-replicas.sh locked > docs/output/three-replicas-locked.txt echo "regenerated:"; ls -1 docs/output