#! /bin/bash
set -x

# Create required dirs.
mkdir --parents /b/skia-repo/
mkdir --parents /b/storage/

# Add env vars to ~/.bashrc
echo 'export GOROOT=/usr/lib/go' >> ~/.bashrc
echo 'export GOPATH=/b/skia-repo/go/' >> ~/.bashrc
echo 'export PATH=$GOPATH/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

# Install necessary packages.
sudo apt-get update
sudo apt-get --assume-yes upgrade
sudo apt-get --assume-yes install golang-go python-django python-setuptools lua5.2
sudo easy_install -U pip
sudo pip install -U crcmod

# Checkout the Skia infra repo.
cd /b/skia-repo
GOPATH=/b/skia-repo/go/ go get -u -t go.skia.org/infra/...

#! /bin/bash
set -x

# Create required dirs.
mkdir --parents /b/skia-repo/
mkdir --parents /b/storage/

# Add env vars to ~/.bashrc
echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
echo 'export GOPATH=/b/skia-repo/go/' >> ~/.bashrc
echo 'export PATH=$GOPATH/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

# Install necessary packages.
sudo apt-get update
sudo apt-get --assume-yes upgrade
sudo apt-get --assume-yes install python-django python-setuptools lua5.2
sudo easy_install -U pip
sudo pip install -U crcmod

# Install golang.
GO_VERSION=go1.8.linux-amd64
wget https://storage.googleapis.com/golang/$GO_VERSION.tar.gz
tar -zxvf $GO_VERSION.tar.gz
sudo mv go /usr/local/$GO_VERSION
sudo ln -s /usr/local/$GO_VERSION /usr/local/go
sudo ln -s /usr/local/$GO_VERSION/bin/go /usr/bin/go
rm $GO_VERSION.tar.gz

# Checkout the Skia infra repo.
cd /b/skia-repo
GOPATH=/b/skia-repo/go/ go get -u -t go.skia.org/infra/...

Install golang 1.8 on skia-ct-master
Install golang 1.8 on skia-ct-master

BUG=skia:6700

Change-Id: Idb0e35b68616be8d2b5d941af47da157f1d5785b
Reviewed-on: https://skia-review.googlesource.com/18139
Reviewed-by: Ben Wagner <3ef7217be91069877d94f7907ce5479000772cd3@google.com>
