Fixed pulling and cloning of acceptance tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user