16 lines
434 B
Bash
Executable File
16 lines
434 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Pre-push gate: run the full project check before anything leaves the machine.
|
|
# Enable once with:
|
|
# git config core.hooksPath .githooks
|
|
#
|
|
# Skip in a pinch with: git push --no-verify
|
|
#
|
|
# To include the backend integration tests, export TEST_DATABASE_URL pointing at
|
|
# a throwaway database (see scripts/check.sh).
|
|
|
|
set -euo pipefail
|
|
|
|
ROOT="$(git rev-parse --show-toplevel)"
|
|
exec "$ROOT/scripts/check.sh" all
|