2019-04-23 14:26:40 +02:00
|
|
|
---
|
|
|
|
|
kind: pipeline
|
2019-12-14 16:40:30 +01:00
|
|
|
name: default
|
2019-04-23 14:26:40 +02:00
|
|
|
|
|
|
|
|
platform:
|
|
|
|
|
os: linux
|
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: gomod
|
|
|
|
|
pull: always
|
2019-12-14 16:40:30 +01:00
|
|
|
image: golang:latest
|
2019-04-23 14:26:40 +02:00
|
|
|
commands:
|
|
|
|
|
- go mod vendor
|
|
|
|
|
- git diff --exit-code
|
|
|
|
|
environment:
|
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
|
GO111MODULE: on
|
|
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
|
|
|
|
|
2019-12-14 16:40:30 +01:00
|
|
|
- name: build-1.11
|
2019-04-23 14:26:40 +02:00
|
|
|
pull: always
|
2019-12-14 16:40:30 +01:00
|
|
|
image: golang:1.11
|
2019-04-23 14:26:40 +02:00
|
|
|
commands:
|
|
|
|
|
- make build
|
2019-07-23 13:42:38 -07:00
|
|
|
- make test
|
2019-04-24 18:37:44 +02:00
|
|
|
- make test-integration
|
2019-04-23 14:26:40 +02:00
|
|
|
environment:
|
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
|
GO111MODULE: on
|
|
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
2019-12-14 16:40:30 +01:00
|
|
|
depends_on:
|
|
|
|
|
- gomod
|
2019-04-23 14:26:40 +02:00
|
|
|
|
2019-12-14 16:40:30 +01:00
|
|
|
- name: build-1.12
|
2019-11-10 13:44:10 +01:00
|
|
|
pull: always
|
|
|
|
|
image: golang:1.12
|
|
|
|
|
commands:
|
|
|
|
|
- make build
|
|
|
|
|
- make test
|
|
|
|
|
- make test-integration
|
|
|
|
|
environment:
|
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
|
GO111MODULE: on
|
|
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
2019-12-14 16:40:30 +01:00
|
|
|
depends_on:
|
|
|
|
|
- gomod
|
2019-11-10 13:44:10 +01:00
|
|
|
|
2019-12-14 16:40:30 +01:00
|
|
|
- name: build-1.13
|
2019-11-10 13:44:10 +01:00
|
|
|
pull: always
|
2019-12-14 16:40:30 +01:00
|
|
|
image: golang:1.13
|
2019-11-10 13:44:10 +01:00
|
|
|
commands:
|
|
|
|
|
- make build
|
|
|
|
|
- make test
|
|
|
|
|
- make test-integration
|
|
|
|
|
environment:
|
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
|
GO111MODULE: on
|
|
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
2019-12-14 16:40:30 +01:00
|
|
|
depends_on:
|
2020-02-10 10:17:29 +01:00
|
|
|
- gomod
|
|
|
|
|
|
|
|
|
|
- name: build-1.14-rc
|
|
|
|
|
pull: always
|
|
|
|
|
image: golang:1.14-rc
|
|
|
|
|
commands:
|
|
|
|
|
- make build
|
|
|
|
|
- make test
|
|
|
|
|
- make test-integration
|
|
|
|
|
environment:
|
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
|
GO111MODULE: on
|
|
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
|
|
|
|
depends_on:
|
2019-12-14 16:40:30 +01:00
|
|
|
- build-1.11
|
|
|
|
|
- build-1.12
|
2020-02-10 10:17:29 +01:00
|
|
|
- build-1.13
|
2019-11-10 13:44:10 +01:00
|
|
|
|
|
|
|
|
- name: generate
|
|
|
|
|
pull: always
|
2019-12-14 16:40:30 +01:00
|
|
|
image: golang:latest
|
2019-11-10 13:44:10 +01:00
|
|
|
commands:
|
|
|
|
|
- make check-license
|
|
|
|
|
- make generate
|
|
|
|
|
- git diff --exit-code
|
|
|
|
|
environment:
|
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
|
GO111MODULE: on
|
|
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
2019-12-14 16:40:30 +01:00
|
|
|
depends_on:
|
|
|
|
|
- build-1.13
|
2019-11-10 13:44:10 +01:00
|
|
|
|
2019-04-23 14:26:40 +02:00
|
|
|
...
|