blob: 4c126f5bc6b79346b2ce75e23a4c9294fe644f49 [file] [log] [blame]
# This file contains constants for the shell scripts which interact with the
# Skia's GCE instances.
GCUTIL=`which gcutil`
# Set all constants in compute_engine_cfg.py as env variables.
$(python ../compute_engine_cfg.py)
if [ $? != "0" ]; then
echo "Failed to read compute_engine_cfg.py!"
exit 1
fi
# If this is true, then the VM instances will be set up with auth scopes
# appropriate for the android merge bot.
if [ "$VM_IS_ANDROID_MERGE" = 1 ]; then
SCOPES="https://www.googleapis.com/auth/androidbuild.internal,https://www.googleapis.com/auth/gerritcodereview,$SCOPES"
fi
# TODO(rmistry): Investigate moving the below constants to compute_engine_cfg.py
REQUIRED_FILES_FOR_LINUX_BOTS=(.gitconfig \
.netrc)
# Use a different chrome-bot password for windows due to the issue mentioned
# here: https://buganizer.corp.google.com/u/0/issues/18817374#comment29
# The password is available in valentine (win-chrome-bot).
REQUIRED_FILES_FOR_WIN_BOTS=(win-chrome-bot.txt \
.gitconfig \
.netrc)
REQUIRED_FILES_FOR_CT_BOTS=(/tmp/.gitconfig \
/tmp/.boto \
/tmp/.netrc \
/tmp/google_storage_token.data \
/tmp/client_secret.json)
GCOMPUTE_CMD="$GCUTIL --project=$PROJECT_ID"
GCOMPUTE_SSH_CMD="$GCOMPUTE_CMD ssh --zone=$ZONE --ssh_user=$PROJECT_USER"
GO_VERSION="go1.6.3.linux-amd64"