blob: d6891a711955f6d860447842d854540a054f2f3e [file] [log] [blame]
#!/bin/bash
#
# Utility functions for the GCE buildbot scripts.
#
# Copyright 2013 Google Inc. All Rights Reserved.
# Author: rmistry@google.com (Ravi Mistry)
function checkout_depot_tools {
echo
echo "===== Checkout depot tools. ====="
$GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $VM_COMPLETE_NAME \
"mkdir -p $SKIA_REPO_DIR; " \
"cd $SKIA_REPO_DIR && " \
"git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git" \
|| FAILED="$FAILED DepotTools"
echo
}
function checkout_buildbot {
echo
echo "===== Checkout the buildbot code. ====="
$GCOMPUTE_CMD ssh --ssh_user=$PROJECT_USER $VM_COMPLETE_NAME \
"mkdir -p $SKIA_REPO_DIR; " \
"cd $SKIA_REPO_DIR && " \
"/home/$PROJECT_USER/$SKIA_REPO_DIR/depot_tools/gclient config https://skia.googlesource.com/buildbot.git && " \
"/home/$PROJECT_USER/$SKIA_REPO_DIR/depot_tools/gclient sync" \
|| FAILED="$FAILED BuildbotScripts"
echo
}