Skip to content

Instantly share code, notes, and snippets.

@newtonlabs
Last active March 24, 2016 19:14
Show Gist options
  • Save newtonlabs/aff90370d4cf8bc3ea2e to your computer and use it in GitHub Desktop.
Save newtonlabs/aff90370d4cf8bc3ea2e to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
set -o pipefail
if [[ ! -e ~/go ]];then
wget -O /tmp/go.tgz https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz
cd ~ && tar xvzf /tmp/go.tgz
fi
echo "Removing old go at /usr/local/go"
sudo rm -rf /usr/local/go
echo "Installing go 1.6"
sudo cp -rp ~/go /usr/local
echo "Dumping Go ENV"
go env
echo "Installing packages..."
go get -u github.com/Masterminds/glide
go get -u github.com/jstemmer/go-junit-report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment