Use gofmt from Go 1.11 (#5259)
This commit is contained in:
parent
0f75f3b304
commit
84139cf890
|
@ -36,30 +36,30 @@ jobs:
|
|||
steps:
|
||||
- attach_workspace:
|
||||
at: '/go/src'
|
||||
- run: 'make check'
|
||||
# disabled due to gofmt differences (1.10 vs 1.11).
|
||||
#- run: 'make check'
|
||||
- run: 'make test'
|
||||
test-go-1.10:
|
||||
<<: [ *defaults, *go-1_10 ]
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: '/go/src'
|
||||
- run: 'make check'
|
||||
# disabled due to gofmt differences (1.10 vs 1.11).
|
||||
#- run: 'make check'
|
||||
- run: 'make test'
|
||||
test-go-1.11:
|
||||
<<: [ *defaults, *go-1_11 ]
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: '/go/src'
|
||||
# disabled due to gofmt differences (1.10 vs 1.11).
|
||||
# - run: 'make check'
|
||||
- run: 'make check'
|
||||
- run: 'make test'
|
||||
test-go-1.11-386:
|
||||
<<: [ *defaults, *go-1_11 ]
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: '/go/src'
|
||||
# disabled due to gofmt differences (1.10 vs 1.11).
|
||||
# - run: 'GOARCH=386 make check'
|
||||
- run: 'GOARCH=386 make check'
|
||||
- run: 'GOARCH=386 make test'
|
||||
|
||||
package:
|
||||
|
|
|
@ -38,7 +38,7 @@ Ansible role: https://github.com/rossmcdonald/telegraf
|
|||
|
||||
Telegraf requires golang version 1.9 or newer, the Makefile requires GNU make.
|
||||
|
||||
1. [Install Go](https://golang.org/doc/install) >=1.9 (1.10 recommended)
|
||||
1. [Install Go](https://golang.org/doc/install) >=1.9 (1.11 recommended)
|
||||
2. [Install dep](https://golang.github.io/dep/docs/installation.html) ==v0.5.0
|
||||
3. Download Telegraf source:
|
||||
```
|
||||
|
|
|
@ -12,11 +12,11 @@ platform: x64
|
|||
|
||||
install:
|
||||
- IF NOT EXIST "C:\Cache" mkdir C:\Cache
|
||||
- IF NOT EXIST "C:\Cache\go1.10.4.msi" curl -o "C:\Cache\go1.10.4.msi" https://storage.googleapis.com/golang/go1.10.4.windows-amd64.msi
|
||||
- IF NOT EXIST "C:\Cache\go1.11.4.msi" curl -o "C:\Cache\go1.11.4.msi" https://storage.googleapis.com/golang/go1.11.4.windows-amd64.msi
|
||||
- IF NOT EXIST "C:\Cache\gnuwin32-bin.zip" curl -o "C:\Cache\gnuwin32-bin.zip" https://dl.influxdata.com/telegraf/ci/make-3.81-bin.zip
|
||||
- IF NOT EXIST "C:\Cache\gnuwin32-dep.zip" curl -o "C:\Cache\gnuwin32-dep.zip" https://dl.influxdata.com/telegraf/ci/make-3.81-dep.zip
|
||||
- IF EXIST "C:\Go" rmdir /S /Q C:\Go
|
||||
- msiexec.exe /i "C:\Cache\go1.10.4.msi" /quiet
|
||||
- msiexec.exe /i "C:\Cache\go1.11.4.msi" /quiet
|
||||
- 7z x "C:\Cache\gnuwin32-bin.zip" -oC:\GnuWin32 -y
|
||||
- 7z x "C:\Cache\gnuwin32-dep.zip" -oC:\GnuWin32 -y
|
||||
- go get -d github.com/golang/dep
|
||||
|
|
Loading…
Reference in New Issue