about summary refs log tree commit diff
path: root/scripts/builder.sh
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-09-23 22:09:36 +0200
committerfranck cuny <franck@lumberjaph.net>2010-09-23 22:09:36 +0200
commit585ce5b679406ffe8644b23e3a267d7af8e3a5de (patch)
tree27dff9a966b9c265e929330b48314f1c38d48428 /scripts/builder.sh
parentignore logs (diff)
downloadjitterbug-585ce5b679406ffe8644b23e3a267d7af8e3a5de.tar.gz
initial import
Diffstat (limited to 'scripts/builder.sh')
-rwxr-xr-xscripts/builder.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/builder.sh b/scripts/builder.sh
new file mode 100755
index 0000000..01eb92e
--- /dev/null
+++ b/scripts/builder.sh
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+gitrepo=$1
+project=$2
+commit=$3
+
+ORIGIN=$(pwd)
+BUILDDIR=$(mktemp -d)
+LOGDIR="/tmp/jitterbug"
+mkdir -p $LOGDIR
+logfile="$LOGDIR/$project.$commit.txt"
+cd $BUILDDIR
+rm -rf $project
+git clone $gitrepo $project
+cd $project
+git checkout $commit
+perl Makefile.PL
+make
+make test 2>&1 > $logfile
+cd ..
+rm -rf $BUILDDIR