summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett Robinson <garrettr@riseup.net>2014-07-03 15:13:39 -0700
committerGarrett Robinson <garrettr@riseup.net>2014-07-03 15:13:39 -0700
commit42adc90abcff2587cf06fd2c90372085e4e2a30f (patch)
tree1f9fe4004ef58325f1d35d05c4d571a56e830d39
parent0e830b319d7e03b36eec52bb6930dd6c295c980e (diff)
downloadonionshare-42adc90abcff2587cf06fd2c90372085e4e2a30f.tar.gz
onionshare-42adc90abcff2587cf06fd2c90372085e4e2a30f.zip
add push hook that runs test suite
-rw-r--r--git-hooks/README.md3
-rwxr-xr-xgit-hooks/pre-push6
2 files changed, 9 insertions, 0 deletions
diff --git a/git-hooks/README.md b/git-hooks/README.md
new file mode 100644
index 00000000..0d8f80c9
--- /dev/null
+++ b/git-hooks/README.md
@@ -0,0 +1,3 @@
+To use these hooks, cp any of them to onionshare's `.git/hooks`.
+
+* `pre-push` runs the test suite, and will push if the tests pass.
diff --git a/git-hooks/pre-push b/git-hooks/pre-push
new file mode 100755
index 00000000..0ffd106c
--- /dev/null
+++ b/git-hooks/pre-push
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+# Pre-push hook. If you want to test with a different version of firefox, put
+# the path in the CFX_FIREFOX environment variable.
+
+nosetests test