summary refs log tree commit diff
path: root/scripts/builder.sh
blob: 01eb92ef8a5575a2c78d0ef9a6f0617804571500 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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