Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7rnC7jppGGdHGESvy
13 lines
682 B
Bash
Executable File
13 lines
682 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file in output/ : the test suite writes the MockMvc transcripts,
|
|
# then a real Tomcat is started and driven with curl for 10-live-*.txt.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
rm -rf output && mkdir -p output
|
|
mvn -B -q test > /tmp/thymeleaf-htmx-mvn.log 2>&1 || { cat /tmp/thymeleaf-htmx-mvn.log; exit 1; }
|
|
mvn -B -q -DskipTests package > /dev/null 2>&1
|
|
./scripts/live-demo.sh > output/10-live-curl.txt
|
|
grep -E 'Tests run' target/surefire-reports/*.txt | sed 's#.*/##' > output/00-mvn-test.txt
|
|
if [ -d browser-check/node_modules ] || command -v node >/dev/null; then ./scripts/browser-check.sh > output/11-browser-check.txt; fi
|
|
ls output
|