blob: 38d7563976b85d0d519ac80aabc586589a74e646 [file]
#!/bin/bash
#
# The continue_install script updates the webtry user's copy of depot_tools
# and the buildbot repository.
# It then builds the webtry server outside the jail.
#
# The setup scripts should run this script as the 'webtry' user.
#
# See the README file for detailed installation instructions.
# Install Go
cd
if [ -d go ]; then
echo Go already installed.
else
wget https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz
tar -xzf go1.4.linux-amd64.tar.gz
fi
mkdir ${HOME}/golib
export GOROOT=${HOME}/go
export GOPATH=${HOME}/golib
export PATH=$PATH:$GOROOT/bin
# Install depot_tools.
if [ -d depot_tools ]; then
(cd depot_tools && git pull);
else
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git;
fi
export PATH=$PATH:~/depot_tools
# Checkout the skia code (needed so that webtry can build its template).
fetch skia
# If we *already had* a skia checkout, the above fetch will fail, since
# fetch only gets new things. We still need to do an update.
cd skia
git checkout master
git pull
go get -u go.skia.org/infra/...
cd ${GOPATH}/src/go.skia.org/infra/webtry
make