Build official packages with Go 1.13.1 (#6462)

This commit is contained in:
Daniel Nelson
2019-10-07 21:08:28 -07:00
committed by GitHub
parent da17d6569d
commit 5bd5cdc6d7
8 changed files with 58 additions and 209 deletions

View File

@@ -4,20 +4,17 @@ defaults:
working_directory: '/go/src/github.com/influxdata/telegraf'
environment:
GOFLAGS: -p=8
go-1_10: &go-1_10
docker:
- image: 'quay.io/influxdb/telegraf-ci:1.10.8'
go-1_11: &go-1_11
docker:
- image: 'quay.io/influxdb/telegraf-ci:1.11.13'
go-1_12: &go-1_12
docker:
- image: 'quay.io/influxdb/telegraf-ci:1.12.10'
go-1_13: &go-1_13
docker:
- image: 'quay.io/influxdb/telegraf-ci:1.13.1'
version: 2
jobs:
deps:
<<: [ *defaults, *go-1_12 ]
<<: [ *defaults, *go-1_13 ]
steps:
- checkout
- restore_cache:
@@ -34,28 +31,13 @@ jobs:
paths:
- '*'
test-go-1.10:
<<: [ *defaults, *go-1_10 ]
steps:
- attach_workspace:
at: '/go/src'
# 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'
- run: 'make check'
- run: 'make test'
test-go-1.12:
<<: [ *defaults, *go-1_12 ]
steps:
- attach_workspace:
at: '/go/src'
- run: 'GOARCH=386 make check'
- run: 'GOARCH=386 make test'
- run: 'make check'
- run: 'make test'
test-go-1.12-386:
<<: [ *defaults, *go-1_12 ]
steps:
@@ -63,9 +45,23 @@ jobs:
at: '/go/src'
- run: 'GOARCH=386 make check'
- run: 'GOARCH=386 make test'
test-go-1.13:
<<: [ *defaults, *go-1_13 ]
steps:
- attach_workspace:
at: '/go/src'
- run: 'make check'
- run: 'make test'
test-go-1.13-386:
<<: [ *defaults, *go-1_13 ]
steps:
- attach_workspace:
at: '/go/src'
- run: 'GOARCH=386 make check'
- run: 'GOARCH=386 make test'
package:
<<: [ *defaults, *go-1_12 ]
<<: [ *defaults, *go-1_13 ]
steps:
- attach_workspace:
at: '/go/src'
@@ -74,7 +70,7 @@ jobs:
path: './build'
destination: 'build'
release:
<<: [ *defaults, *go-1_12 ]
<<: [ *defaults, *go-1_13 ]
steps:
- attach_workspace:
at: '/go/src'
@@ -83,7 +79,7 @@ jobs:
path: './build'
destination: 'build'
nightly:
<<: [ *defaults, *go-1_12 ]
<<: [ *defaults, *go-1_13 ]
steps:
- attach_workspace:
at: '/go/src'
@@ -100,18 +96,6 @@ workflows:
filters:
tags:
only: /.*/
- 'test-go-1.10':
requires:
- 'deps'
filters:
tags:
only: /.*/
- 'test-go-1.11':
requires:
- 'deps'
filters:
tags:
only: /.*/
- 'test-go-1.12':
requires:
- 'deps'
@@ -124,18 +108,30 @@ workflows:
filters:
tags:
only: /.*/
- 'test-go-1.13':
requires:
- 'deps'
filters:
tags:
only: /.*/
- 'test-go-1.13-386':
requires:
- 'deps'
filters:
tags:
only: /.*/
- 'package':
requires:
- 'test-go-1.10'
- 'test-go-1.11'
- 'test-go-1.12'
- 'test-go-1.12-386'
- 'test-go-1.13'
- 'test-go-1.13-386'
- 'release':
requires:
- 'test-go-1.10'
- 'test-go-1.11'
- 'test-go-1.12'
- 'test-go-1.12-386'
- 'test-go-1.13'
- 'test-go-1.13-386'
filters:
tags:
only: /.*/
@@ -144,24 +140,24 @@ workflows:
nightly:
jobs:
- 'deps'
- 'test-go-1.10':
requires:
- 'deps'
- 'test-go-1.11':
requires:
- 'deps'
- 'test-go-1.12':
requires:
- 'deps'
- 'test-go-1.12-386':
requires:
- 'deps'
- 'test-go-1.13':
requires:
- 'deps'
- 'test-go-1.13-386':
requires:
- 'deps'
- 'nightly':
requires:
- 'test-go-1.10'
- 'test-go-1.11'
- 'test-go-1.12'
- 'test-go-1.12-386'
- 'test-go-1.13'
- 'test-go-1.13-386'
triggers:
- schedule:
cron: "0 7 * * *"