blob: 895a07ca83e3db1b3c2c55e6b0875a4f5e022c51 [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 && " \
"if [[ -d depot_tools ]]; then rm -rf depot_tools; fi && " \
"svn checkout http://src.chromium.org/svn/trunk/tools/depot_tools" \
|| 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 && " \
"if [[ -d buildbot ]]; then rm -rf buildbot; fi && " \
"/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
}