Merge pull request #86 from garrettr/push-hook

add push hook that runs test suite
This commit is contained in:
Micah Lee 2014-07-03 17:33:27 -07:00
commit c1bec61e8d
2 changed files with 9 additions and 0 deletions

3
git-hooks/README.md Normal file
View File

@ -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.

6
git-hooks/pre-push Executable file
View File

@ -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