aboutsummaryrefslogtreecommitdiffstats
path: root/Cakefile
diff options
context:
space:
mode:
authorJez Ng2012-07-26 03:53:34 -0700
committerJez Ng2012-07-26 03:56:05 -0700
commit492c920082d31749aec5b201802e47d0e90263e7 (patch)
tree82e144513936d24a6ab76252bb8696386b5ac285 /Cakefile
parente124536b675be48937c373bcf602b11e02ab87f8 (diff)
downloadvimium-492c920082d31749aec5b201802e47d0e90263e7.tar.bz2
Git hacking: Set up pre-commit test hook.
Also tweak .gitignore. To activate the hook, symlink .git/hooks to git_hooks.
Diffstat (limited to 'Cakefile')
-rw-r--r--Cakefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Cakefile b/Cakefile
index 5f6a53b9..0a45abac 100644
--- a/Cakefile
+++ b/Cakefile
@@ -47,3 +47,5 @@ task "test", "run all unit tests", ->
test_files = test_files.map((filename) -> "tests/" + filename)
test_files.forEach (file) -> require "./" + file
Tests.run()
+ if Tests.testsFailed > 0
+ process.exit 1