Files
cms-SiteForge/scripts/check.sh
T

24 lines
885 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.."
python -m compileall -q app
# Each batch has a hard deadline and failed batches are isolated for diagnosis.
# Reports are generated outside test output; do not commit logs without review.
python scripts/regression_v829.py --timeout "${SITEFORGE_REGRESSION_TIMEOUT:-65}" --group-size 3
python scripts/verify_release.py
if command -v node >/dev/null 2>&1; then
for f in app/static/*.js; do node --check "$f"; done
else
echo "ERROR: Node.js required for JavaScript syntax check" >&2
exit 1
fi
if command -v node >/dev/null 2>&1; then
node --test tests_js/*.test.cjs
node tests/test_nested_helpers_v823.cjs
node --test tests_js/studio-experience-v829.test.cjs
fi
if command -v docker >/dev/null 2>&1; then
docker compose config --quiet
docker compose -f compose.enterprise.yaml config --quiet
fi