jsonnet-bundler/.drone.jsonnet

56 lines
896 B
Jsonnet
Raw Permalink Normal View History

{
kind: 'pipeline',
name: 'default',
platform: {
os: 'linux',
arch: 'amd64',
},
2019-11-10 13:44:10 +01:00
local golang(version='latest') = {
name: 'golang',
image: 'golang:%s' % version,
pull: 'always',
environment: {
CGO_ENABLED: '0',
GO111MODULE: 'on',
},
when: {
event: {
exclude: ['tag'],
},
},
},
local build(version) = golang(version) {
name: 'build-%s' % version,
commands: [
'make build',
'make test',
'make test-integration',
],
},
steps: [
golang() {
name: 'gomod',
commands: [
'go mod vendor',
'git diff --exit-code',
],
},
2022-06-22 16:26:42 +02:00
build('1.16'),
build('1.17'),
build('1.18'),
golang() {
name: 'generate',
commands: [
'make check-license',
'make generate',
'git diff --exit-code',
],
},
],
}