forked from jsonnet-bundler/jsonnet-bundler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.jsonnet
55 lines (50 loc) · 896 Bytes
/
.drone.jsonnet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
kind: 'pipeline',
name: 'default',
platform: {
os: 'linux',
arch: 'amd64',
},
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',
],
},
build('1.16'),
build('1.17'),
build('1.18'),
golang() {
name: 'generate',
commands: [
'make check-license',
'make generate',
'git diff --exit-code',
],
},
],
}