Fixed pulling and cloning of acceptance tests

This commit is contained in:
Marcin Grzejszczak
2015-12-09 16:37:18 +01:00
parent 788ca6c6e7
commit fe06406f18

View File

@@ -1,8 +1,21 @@
#!/bin/sh
set -e
git clone https://github.com/spring-cloud-samples/brewery.git
REPOSRC=https://github.com/spring-cloud-samples/brewery.git
LOCALREPO=brewery
LOCALREPO_VC_DIR=$LOCALREPO/.git
if [ ! -d $LOCALREPO_VC_DIR ]
then
git clone $REPOSRC $LOCALREPO
cd $LOCALREPO
else
cd $LOCALREPO
git reset --hard
git pull $REPOSRC
fi
cd brewery
./gradlew clean build docker --parallel
docker-compose up -d