summaryrefslogtreecommitdiff
path: root/posts/2009-04-14-git-and-prove.md
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-08-04 11:45:44 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-08-04 11:45:44 -0700
commit585b48b6a605cb71ef99dd767880e1b7ee5bf24e (patch)
treec65377350d12bd1e62e0bdd58458c1044541c27b /posts/2009-04-14-git-and-prove.md
parentUse Bullet list for the index. (diff)
parentMass convert all posts from markdown to org. (diff)
downloadlumberjaph-585b48b6a605cb71ef99dd767880e1b7ee5bf24e.tar.gz
Merge branch 'convert-to-org'
Diffstat (limited to 'posts/2009-04-14-git-and-prove.md')
-rw-r--r--posts/2009-04-14-git-and-prove.md25
1 files changed, 0 insertions, 25 deletions
diff --git a/posts/2009-04-14-git-and-prove.md b/posts/2009-04-14-git-and-prove.md
deleted file mode 100644
index 4688189..0000000
--- a/posts/2009-04-14-git-and-prove.md
+++ /dev/null
@@ -1,25 +0,0 @@
-A little trick to force you to run your tests before a commit:
-
-in a repositorie, create the following file **.git/hooks/pre-commit** with this content:
-
-```sh
-#!/bin/sh
-if [ -d t ]; then
- res=`prove t`
- if [ $? -gt 0 ]; then
- echo "tests fails"
- exit 1
- fi
-fi
-if [ -d xt ]; then
- res=`prove xt`
- if [ $? -gt 0 ]; then
- echo "tests fails"
- exit 1
- fi
-fi
-```
-
-and don't forget to chmod with +x.
-
-Now, when you will do your next commit, your test suit will be executed. If the tests fails, the commit will be rejected.