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