Last active
November 29, 2017 20:16
-
-
Save BSick7/5ca8ad3eeec138a0bf51da775de4279e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -o pipefail | |
if [[ ! -e ~/go ]];then | |
wget -O /tmp/go.tgz https://redirector.gvt1.com/edgedl/go/go1.9.2.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.9.2" | |
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