add push hook that runs test suite

This commit is contained in:
Garrett Robinson 2014-07-03 15:13:39 -07:00
parent 0e830b319d
commit 42adc90abc
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