summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2014-07-03 17:33:27 -0700
committerMicah Lee <micah@micahflee.com>2014-07-03 17:33:27 -0700
commitc1bec61e8db4d7c1398278732787c6952c932095 (patch)
tree1f9fe4004ef58325f1d35d05c4d571a56e830d39
parent0e830b319d7e03b36eec52bb6930dd6c295c980e (diff)
parent42adc90abcff2587cf06fd2c90372085e4e2a30f (diff)
downloadonionshare-c1bec61e8db4d7c1398278732787c6952c932095.tar.gz
onionshare-c1bec61e8db4d7c1398278732787c6952c932095.zip
Merge pull request #86 from garrettr/push-hook
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