Add Go 1.11 CI support (#4859)
This commit is contained in:
committed by
Daniel Nelson
parent
42483b39ec
commit
1ec12ba6ad
@@ -8,11 +8,14 @@ defaults:
|
||||
go-1_10: &go-1_10
|
||||
docker:
|
||||
- image: 'quay.io/influxdb/telegraf-ci:1.10.4'
|
||||
go-1_11: &go-1_11
|
||||
docker:
|
||||
- image: 'quay.io/influxdb/telegraf-ci:1.11.1'
|
||||
|
||||
version: 2
|
||||
jobs:
|
||||
deps:
|
||||
<<: [ *defaults, *go-1_10 ]
|
||||
<<: [ *defaults, *go-1_11 ]
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
@@ -42,16 +45,25 @@ jobs:
|
||||
at: '/go/src'
|
||||
- run: 'make check'
|
||||
- run: 'make test'
|
||||
test-go-1.10-386:
|
||||
<<: [ *defaults, *go-1_10 ]
|
||||
test-go-1.11:
|
||||
<<: [ *defaults, *go-1_11 ]
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: '/go/src'
|
||||
- run: 'GOARCH=386 make check'
|
||||
# disabled due to gofmt differences (1.10 vs 1.11).
|
||||
# - 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 test'
|
||||
|
||||
package:
|
||||
<<: [ *defaults, *go-1_10 ]
|
||||
<<: [ *defaults, *go-1_11 ]
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: '/go/src'
|
||||
@@ -60,7 +72,7 @@ jobs:
|
||||
path: './build'
|
||||
destination: 'build'
|
||||
release:
|
||||
<<: [ *defaults, *go-1_10 ]
|
||||
<<: [ *defaults, *go-1_11 ]
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: '/go/src'
|
||||
@@ -69,7 +81,7 @@ jobs:
|
||||
path: './build'
|
||||
destination: 'build'
|
||||
nightly:
|
||||
<<: [ *defaults, *go-1_10 ]
|
||||
<<: [ *defaults, *go-1_11 ]
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: '/go/src'
|
||||
@@ -98,7 +110,13 @@ workflows:
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
- 'test-go-1.10-386':
|
||||
- 'test-go-1.11':
|
||||
requires:
|
||||
- 'deps'
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
- 'test-go-1.11-386':
|
||||
requires:
|
||||
- 'deps'
|
||||
filters:
|
||||
@@ -108,12 +126,14 @@ workflows:
|
||||
requires:
|
||||
- 'test-go-1.9'
|
||||
- 'test-go-1.10'
|
||||
- 'test-go-1.10-386'
|
||||
- 'test-go-1.11'
|
||||
- 'test-go-1.11-386'
|
||||
- 'release':
|
||||
requires:
|
||||
- 'test-go-1.9'
|
||||
- 'test-go-1.10'
|
||||
- 'test-go-1.10-386'
|
||||
- 'test-go-1.11'
|
||||
- 'test-go-1.11-386'
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
@@ -128,14 +148,18 @@ workflows:
|
||||
- 'test-go-1.10':
|
||||
requires:
|
||||
- 'deps'
|
||||
- 'test-go-1.10-386':
|
||||
- 'test-go-1.11':
|
||||
requires:
|
||||
- 'deps'
|
||||
- 'test-go-1.11-386':
|
||||
requires:
|
||||
- 'deps'
|
||||
- 'nightly':
|
||||
requires:
|
||||
- 'test-go-1.9'
|
||||
- 'test-go-1.10'
|
||||
- 'test-go-1.10-386'
|
||||
- 'test-go-1.11'
|
||||
- 'test-go-1.11-386'
|
||||
triggers:
|
||||
- schedule:
|
||||
cron: "0 7 * * *"
|
||||
|
||||
Reference in New Issue
Block a user