diff options
| author | Franck Cuny <franck.cuny@gmail.com> | 2013-11-26 10:36:10 -0800 |
|---|---|---|
| committer | Franck Cuny <franck.cuny@gmail.com> | 2013-11-26 10:36:10 -0800 |
| commit | 8ddf2e94df70707b458528a437759b96046d3e01 (patch) | |
| tree | d442818d92d3c9c6f7fcdc92857a1228963849a1 /_posts/2009-04-14-git-and-prove.textile | |
| parent | Don't need to use the IP in the makefile. (diff) | |
| download | lumberjaph-8ddf2e94df70707b458528a437759b96046d3e01.tar.gz | |
Huge update.
Moved all posts from textile to markdown. Updated all the CSS and
styles. Added a new page for the resume.
Diffstat (limited to '_posts/2009-04-14-git-and-prove.textile')
| -rw-r--r-- | _posts/2009-04-14-git-and-prove.textile | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/_posts/2009-04-14-git-and-prove.textile b/_posts/2009-04-14-git-and-prove.textile deleted file mode 100644 index fca6329..0000000 --- a/_posts/2009-04-14-git-and-prove.textile +++ /dev/null @@ -1,31 +0,0 @@ ---- -layout: post -category: app -title: git and prove ---- - -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 bash %} -#!/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. |
