summaryrefslogtreecommitdiff
path: root/scripts/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hooks')
-rw-r--r--scripts/hooks/pre-push5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/hooks/pre-push b/scripts/hooks/pre-push
new file mode 100644
index 0000000..c4fbcaf
--- /dev/null
+++ b/scripts/hooks/pre-push
@@ -0,0 +1,5 @@
+#!/bin/sh
+# lectio pre-push hook: refuse to push if the CI gate fails (gofmt, vet, both
+# build-tag test sets, corpora). Install with `make install-hooks`.
+# Bypass in a pinch with `git push --no-verify`.
+exec make -C "$(git rev-parse --show-toplevel)" ci