diff options
| -rw-r--r-- | Cakefile | 1 | ||||
| -rwxr-xr-x | git_hooks/pre-commit | 3 |
2 files changed, 2 insertions, 2 deletions
@@ -31,6 +31,7 @@ visitDirectory = (directory, visitor) -> task "build", "compile all coffeescript files to javascript", -> coffee = spawn "coffee", ["-c", __dirname] + coffee.on 'exit', (returnCode) -> process.exit returnCode task "clean", "removes any js files which were compiled from coffeescript", -> visitDirectory __dirname, (filepath) -> 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 |
