From 0de3404a19779f33d19790488403dbf1335389c6 Mon Sep 17 00:00:00 2001 From: Jez Ng Date: Sat, 3 Nov 2012 14:36:20 -0400 Subject: Skip trying to run tests if build fails. --- git_hooks/pre-commit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git_hooks') diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit index 495e618e..0a21e79b 100755 --- a/git_hooks/pre-commit +++ b/git_hooks/pre-commit @@ -14,8 +14,7 @@ git checkout-index --prefix=$TDIR/ -af cp -r ./tests/shoulda.js/ $TDIR/tests/shoulda.js/ pushd $TDIR > /dev/null - cake build - cake test + cake build && cake test TEST_RESULT=$? popd > /dev/null -- cgit v1.2.3