Turn GOGC on for packaging, use go 1.5.3

This commit is contained in:
Cameron Sparr 2016-02-21 10:41:46 -07:00 committed by Michele Fadda
parent 0b882cc2f9
commit 1b6bc88c14
2 changed files with 5 additions and 3 deletions

View File

@ -4,9 +4,9 @@ machine:
post:
- sudo service zookeeper stop
- go version
- go version | grep 1.5.2 || sudo rm -rf /usr/local/go
- wget https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz
- sudo tar -C /usr/local -xzf go1.5.2.linux-amd64.tar.gz
- go version | grep 1.5.3 || sudo rm -rf /usr/local/go
- wget https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz
- sudo tar -C /usr/local -xzf go1.5.3.linux-amd64.tar.gz
- go version
dependencies:

View File

@ -72,6 +72,8 @@ mv $GOPATH/bin/telegraf $CIRCLE_ARTIFACTS
eval "git describe --exact-match HEAD"
if [ $? -eq 0 ]; then
# Turn GOGC back on for making packages
export GOGC=100
tag=$(git describe --exact-match HEAD)
echo $tag
exit_if_fail ./scripts/build.py --package --version=$tag --platform=linux --arch=all --upload