bump go version to 1.9

This commit is contained in:
Murat Kabilov 2017-10-11 12:01:35 +02:00 committed by GitHub
parent 846d919235
commit 4bc2284b57
3 changed files with 7 additions and 7 deletions

View File

@ -3,7 +3,7 @@ dist: trusty
language: go language: go
go: go:
- 1.8 - 1.9
before_install: before_install:
- go get github.com/Masterminds/glide - go get github.com/Masterminds/glide

View File

@ -2,9 +2,6 @@
BINARY ?= postgres-operator BINARY ?= postgres-operator
BUILD_FLAGS ?= -v BUILD_FLAGS ?= -v
ifeq ("$(shell uname)", "Darwin")
BUILD_FLAGS += -i
endif
CGO_ENABLED ?= 0 CGO_ENABLED ?= 0
ifeq ($(RACE),1) ifeq ($(RACE),1)
BUILD_FLAGS += -race -a BUILD_FLAGS += -race -a

View File

@ -4,9 +4,12 @@ build_steps:
apt-get install -y make git apt-transport-https ca-certificates curl apt-get install -y make git apt-transport-https ca-certificates curl
- desc: 'Install go' - desc: 'Install go'
cmd: | cmd: |
add-apt-repository ppa:longsleep/golang-backports cd /tmp
apt-get update wget -q https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz -O go.tar.gz
apt-get install -y golang-go tar -xf go.tar.gz
mv go /usr/local
ln -s /usr/local/go/bin/go /usr/bin/go
go version
- desc: 'Install Docker' - desc: 'Install Docker'
cmd: | cmd: |
curl -sSL https://get.docker.com/ | sh curl -sSL https://get.docker.com/ | sh