blob: dcb585a0495199371023e597655d1b27845f2630 [file]
# 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
CHROME_MASTER_HOST=/tmp/chrome_master_host
REQUIRED_FILES_FOR_LINUX_BOTS=(/tmp/.bot_password \
/tmp/.gitconfig \
/tmp/.netrc \
/tmp/chromium-skia-gm.boto \
$CHROME_MASTER_HOST)
# 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=(/tmp/win-chrome-bot.txt \
/tmp/.bot_password \
/tmp/.gitconfig \
/tmp/.netrc \
/tmp/chromium-skia-gm.boto \
$CHROME_MASTER_HOST)
GCOMPUTE_CMD="$GCUTIL --project=$PROJECT_ID"
GCOMPUTE_SSH_CMD="$GCOMPUTE_CMD --zone=$ZONE ssh --ssh_user=$PROJECT_USER"