Files
museion/scripts/install-hooks.sh
T
AlexKucera 0ab00eb7b6
CI / ci (push) Canceled after 0s
feat(scripts): verify rail + pre-push hook
Port classis full-test.sh (071966e) as Museion's one-command verify
loop: run/start/status/summary over detached xcodebuild, per-run
pinned xcresult bundles with atomic run-dir allocation (#33/#179),
xcresulttool-authoritative counts (#31/#178), zero-match filters
fail (#31/#134), --serialized rerun is the record (#30/#147), per-
test timeouts + wedge observability (#134). Default scope:
MuseionTests.

install-hooks.sh + pre-push: no push while any run is live, lint
gate scoped to the push's Swift files (bare swiftlint . exits 2 on
main — spike/ + one tests file), autofix-rewrite guard. New-ref
pushes lint the merge-base delta vs refs/remotes/origin/main and
fail closed on unscopable history; a full-ref spelling defeats
refs/tags shadowing.

scripts/test-full-test.sh: 23-check acceptance rig with an
executed-count guard. Four finish-audit rounds; every guard
flip-verified both directions. Suite 692/692 through the rail
itself.

Closes #190
2026-11-17 12:14:12 +01:00

11 lines
444 B
Bash
Executable File

#!/usr/bin/env bash
# install-hooks.sh — activate the repo-versioned git hooks (#190).
# Idempotent; safe to re-run after cloning or when hooks go missing.
# Trust note: versioned hooks mean repo content executes at push time —
# install only in repos whose code you already build and run.
set -euo pipefail
cd "$(dirname "$0")/.."
git config core.hooksPath scripts/hooks
echo "core.hooksPath -> scripts/hooks (pre-push lint gate active)"