diff options
author | Garrett Robinson <garrettr@riseup.net> | 2014-07-03 15:13:39 -0700 |
---|---|---|
committer | Garrett Robinson <garrettr@riseup.net> | 2014-07-03 15:13:39 -0700 |
commit | 42adc90abcff2587cf06fd2c90372085e4e2a30f (patch) | |
tree | 1f9fe4004ef58325f1d35d05c4d571a56e830d39 | |
parent | 0e830b319d7e03b36eec52bb6930dd6c295c980e (diff) | |
download | onionshare-42adc90abcff2587cf06fd2c90372085e4e2a30f.tar.gz onionshare-42adc90abcff2587cf06fd2c90372085e4e2a30f.zip |
add push hook that runs test suite
-rw-r--r-- | git-hooks/README.md | 3 | ||||
-rwxr-xr-x | git-hooks/pre-push | 6 |
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 |