| #!/bin/bash |
| # |
| # The continue_install script updates the webtry user's copy of skia and depot_tools. |
| # 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.3.3.linux-amd64.tar.gz |
| tar -xzf go1.3.3.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 and dependencies (again) |
| mkdir skia |
| cd skia |
| gclient config --name . https://skia.googlesource.com/skia.git |
| gclient sync |
| git checkout master |
| |
| cd experimental/webtry |
| |
| go get -u skia.googlesource.com/buildbot.git/perf/go/logserver |
| go get -d |
| ./build |