diff --git a/scripts/runAcceptanceTests.sh b/scripts/runAcceptanceTests.sh index e4b35d2d..44f02761 100644 --- a/scripts/runAcceptanceTests.sh +++ b/scripts/runAcceptanceTests.sh @@ -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