| #!/bin/bash |
| # |
| # Don't execute this script directly, instead it is copied into the perf |
| # user's directory and executed as the user perf by the perf_setup.sh |
| # script. |
| # |
| # See the README file for detailed installation instructions. |
| cd |
| pwd |
| |
| # Install Go |
| 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 |
| |
| if [ -d buildbot ]; then |
| (cd buildbot && git pull); |
| else |
| git clone https://skia.googlesource.com/buildbot |
| fi |
| |
| if [ -d skia ]; then |
| (cd skia && git pull); |
| else |
| git clone https://skia.googlesource.com/skia |
| fi |
| |
| mkdir=/mnt/pd0/glog |
| mkdir=$HOME/golib |
| export GOROOT=$HOME/go |
| export GOPATH=$HOME/golib |
| export PATH=$PATH:$GOROOT/bin:$GOPATH/bin |
| |
| go get -u skia.googlesource.com/buildbot.git/perf/go/... |
| go get -u skia.googlesource.com/buildbot.git/golden/go/... |
| |
| # Still need to run make to build the JS. Also updates code version info. |
| cd $GOPATH/src/skia.googlesource.com/buildbot.git/perf/ |
| make all |
| make release |
| |
| cd $GOPATH/src/skia.googlesource.com/buildbot.git/golden/ |
| make all |