From 42adc90abcff2587cf06fd2c90372085e4e2a30f Mon Sep 17 00:00:00 2001 From: Garrett Robinson Date: Thu, 3 Jul 2014 15:13:39 -0700 Subject: [PATCH] add push hook that runs test suite --- git-hooks/README.md | 3 +++ git-hooks/pre-push | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 git-hooks/README.md create mode 100755 git-hooks/pre-push 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