GIT repo: private -> pub
[mkws-moved-to-github.git] / tools / bin / mkws-bootstrap.sh
1 #!/bin/sh
2 # Copyright (c) 2010-2013 by Index Data ApS. http://www.indexdata.com
3 #
4 # mkws-bootstrap.sh - build the MKWS from GIT repo in a sandbox and run full tests
5 #
6
7 # fail on error
8 set -e
9
10 dir=$(mktemp -d -t mkws-bootstrap.XXXXXXXX)
11 cd $dir
12
13 : ${debug=""}
14
15 git clone -q ssh://git.indexdata.com:222/home/git/pub/mkws.git
16 cd mkws
17
18 test -n "$debug" && echo "start bootstraping in $dir"
19 if make check phantomjs > mkws.log 2>&1; then
20     test -n "$debug" && echo "Ok"
21     test -z "$debug" && rm -rf $dir
22     exit 0
23 else
24     echo "Failure, see `pwd`/mkws.log"
25     exit 1
26 fi
27