From 432662bc865ddcfffa5fc9ec62f0c8a8b05629b5 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 7 May 2015 10:03:33 +0000 Subject: [PATCH] Create multiple GCE VMs at a time. --- circle.yml | 1 - test/gce.sh | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/circle.yml b/circle.yml index 99782120..b178b2c6 100644 --- a/circle.yml +++ b/circle.yml @@ -16,7 +16,6 @@ dependencies: test: pre: - - ls -al /var/run/docker.sock - mkdir -p $(dirname $SRCDIR) - cp -r $(pwd)/ $SRCDIR override: diff --git a/test/gce.sh b/test/gce.sh index 62e11f82..58f903fc 100755 --- a/test/gce.sh +++ b/test/gce.sh @@ -52,13 +52,12 @@ EOF # Create new set of VMS function setup { destroy - - # Create and setup some VMs + names= for i in $(seq 1 $NUM_HOSTS); do - name="host$i" - gcloud compute instances create $name --image $IMAGE --zone $ZONE + names="host$i $names" done + gcloud compute instances create $names --image $IMAGE --zone $ZONE gcloud compute config-ssh --ssh-key-file $SSH_KEY_FILE hosts=