parameterize test/gce.sh so scope can override TEMPLATE_NAME and NUM_HOSTS

This commit is contained in:
Paul Bellamy committed 2015-07-30 15:48:22 +01:00
1 parent dccd199369
commit 9396c046cd
1 file changed
+7 -7
+7 -7
View File
@@ -7,13 +7,13 @@
set -e
KEY_FILE=/tmp/gce_private_key.json
SSH_KEY_FILE=$HOME/.ssh/gce_ssh_key
PROJECT=${PROJECT:-positive-cocoa-90213}
IMAGE=ubuntu-14-04
TEMPLATE_NAME="test-template-3"
ZONE=us-central1-a
NUM_HOSTS=5
: ${KEY_FILE:=/tmp/gce_private_key.json}
: ${SSH_KEY_FILE:=$HOME/.ssh/gce_ssh_key}
: ${PROJECT:=positive-cocoa-90213}
: ${IMAGE:=ubuntu-14-04}
: ${TEMPLATE_NAME:=test-template-3}
: ${ZONE:=us-central1-a}
: ${NUM_HOSTS:=5}
SUFFIX=""
if [ -n "$CIRCLECI" ]; then
SUFFIX="-${CIRCLE_BUILD_NUM}-$CIRCLE_NODE_INDEX"