summaryrefslogtreecommitdiff
path: root/_posts/2009-04-14-git-and-prove.md
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-07-02 20:04:59 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-07-02 20:04:59 -0700
commit8f187c573954b6c8d1650ac33a164c52e032ac16 (patch)
treec605d0cf51d272393006e5486bfdc24984cf801f /_posts/2009-04-14-git-and-prove.md
parentUpdate some posts to make the tests pass. (diff)
downloadlumberjaph-8f187c573954b6c8d1650ac33a164c52e032ac16.tar.gz
Stop using Jekyll.
Moving away from Jekyll to Hugo. This commit clean up the old files to prepare for the migration.
Diffstat (limited to '')
-rw-r--r--_posts/2009-04-14-git-and-prove.md32
1 files changed, 0 insertions, 32 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 f76f21d..0000000
--- a/_posts/2009-04-14-git-and-prove.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-layout: post
-summary: In which I add a hook to git to run my tests.
-title: Git and prove
-type: codex
----
-
-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:
-
-{% highlight 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
-{% endhighlight %}
-
-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.