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:
|
|
|
|
|
arch: amd64
|
2022-06-22 16:26:42 +02:00
|
|
|
os: linux
|
2019-04-23 14:26:40 +02:00
|
|
|
steps:
|
2022-06-22 16:26:42 +02:00
|
|
|
- commands:
|
2019-04-23 14:26:40 +02:00
|
|
|
- go mod vendor
|
|
|
|
|
- git diff --exit-code
|
|
|
|
|
environment:
|
2022-06-22 16:26:42 +02:00
|
|
|
CGO_ENABLED: "0"
|
|
|
|
|
GO111MODULE: "on"
|
|
|
|
|
image: golang:latest
|
|
|
|
|
name: gomod
|
2019-04-23 14:26:40 +02:00
|
|
|
pull: always
|
|
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
2022-06-22 16:26:42 +02:00
|
|
|
- commands:
|
2019-11-10 13:44:10 +01:00
|
|
|
- make build
|
|
|
|
|
- make test
|
|
|
|
|
- make test-integration
|
|
|
|
|
environment:
|
2022-06-22 16:26:42 +02:00
|
|
|
CGO_ENABLED: "0"
|
|
|
|
|
GO111MODULE: "on"
|
|
|
|
|
image: golang:1.16
|
|
|
|
|
name: build-1.16
|
|
|
|
|
pull: always
|
2019-11-10 13:44:10 +01:00
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
2022-06-22 16:26:42 +02:00
|
|
|
- commands:
|
2019-11-10 13:44:10 +01:00
|
|
|
- make build
|
|
|
|
|
- make test
|
|
|
|
|
- make test-integration
|
|
|
|
|
environment:
|
2022-06-22 16:26:42 +02:00
|
|
|
CGO_ENABLED: "0"
|
|
|
|
|
GO111MODULE: "on"
|
|
|
|
|
image: golang:1.17
|
|
|
|
|
name: build-1.17
|
|
|
|
|
pull: always
|
2019-11-10 13:44:10 +01:00
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
2022-06-22 16:26:42 +02:00
|
|
|
- commands:
|
2020-02-10 10:17:29 +01:00
|
|
|
- make build
|
|
|
|
|
- make test
|
|
|
|
|
- make test-integration
|
|
|
|
|
environment:
|
2022-06-22 16:26:42 +02:00
|
|
|
CGO_ENABLED: "0"
|
|
|
|
|
GO111MODULE: "on"
|
|
|
|
|
image: golang:1.18
|
|
|
|
|
name: build-1.18
|
|
|
|
|
pull: always
|
2020-02-10 10:17:29 +01:00
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|
2022-06-22 16:26:42 +02:00
|
|
|
- commands:
|
2019-11-10 13:44:10 +01:00
|
|
|
- make check-license
|
|
|
|
|
- make generate
|
|
|
|
|
- git diff --exit-code
|
|
|
|
|
environment:
|
2022-06-22 16:26:42 +02:00
|
|
|
CGO_ENABLED: "0"
|
|
|
|
|
GO111MODULE: "on"
|
|
|
|
|
image: golang:latest
|
|
|
|
|
name: generate
|
|
|
|
|
pull: always
|
2019-11-10 13:44:10 +01:00
|
|
|
when:
|
|
|
|
|
event:
|
|
|
|
|
exclude:
|
|
|
|
|
- tag
|