Repository Public License
1#!/usr/bin/env bash2# Build + lint + all tests (CLAUDE.md §3). Warnings are errors. Live API tests are NOT run here.3# scripts/verify.sh everything, including one real launch of a published satellite4# PRISM_NO_LAUNCH=1 scripts/verify.sh skip the launch test (no window appears)5set -euo pipefail6cd "$(dirname "$0")/.."7echo "== build (warnings as errors) =="8swift build -Xswiftc -warnings-as-errors 2>&1 | tail -29echo "== app bundles =="10scripts/build.sh debug 2>&1 | tail -111echo "== lint =="12scripts/lint.sh13echo "== tests =="14unset PRISM_LIVE15if [ "${PRISM_NO_LAUNCH:-}" = "1" ]; then unset PRISM_TEST_LAUNCH; else export PRISM_TEST_LAUNCH=1; fi16log="$(mktemp)"17set +e18swift test 2>&1 > "$log"19status=$?20set -e21grep -E "✘|error:" "$log" | head -40 || true22passed=$(grep -cE "^✔ Test .* passed" "$log" || true)23failed=$(grep -cE "^✘ Test .* failed" "$log" || true)24skipped=$(grep -cE "^➜ Test .* skipped" "$log" || true)25echo "tests: $passed passed, $failed failed, $skipped skipped (suites: $(grep -cE '^✔ Test run' "$log" || true) ok)"26rm -f "$log"27[ "$status" -eq 0 ] || { echo "VERIFY FAILED"; exit 1; }28if [ "${PRISM_NO_LAUNCH:-}" != "1" ]; then29 echo "== ui walk (real window, in the background) =="30 scripts/ui-walk.sh debug || { echo "VERIFY FAILED (ui walk)"; exit 1; }31fi32echo "VERIFY OK"33