#!/usr/bin/env sh
# Local/CI quality gate: static analysis, then the full test suite. Exits non-zero if either fails.
# Needs PHP 8.4+, Composer dependencies installed, and a MariaDB test database configured in .env (see docs/DEV-SETUP.md).
set -eu
cd "$(dirname "$0")/.."

php vendor/bin/phpstan analyse --no-progress --memory-limit=1G
php vendor/bin/phpunit
echo "CI gate passed."
