-
Notifications
You must be signed in to change notification settings - Fork 19
/
ci.gocd.yaml
173 lines (173 loc) · 5.19 KB
/
ci.gocd.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
format_version: 3
pipelines:
dojo:
group: dojo
label_template: "${COUNT}-${git[:8]}"
materials:
git:
type: configrepo
blacklist:
- "doc/**/*"
- "**/*.md"
stages:
- build_unit:
clean_workspace: true
jobs:
build_unit:
resources:
- docker
artifacts:
- build:
source: bin/dojo_linux_amd64
destination:
- build:
source: bin/dojo_darwin_amd64
destination:
tasks:
- exec:
command: dojo
arguments:
- -c
- Dojofile.build
- ./tasks deps
- exec:
command: dojo
arguments:
- -c
- Dojofile.build
- ./tasks build
- exec:
command: dojo
arguments:
- -c
- Dojofile.build
- ./tasks unit
- e2e:
clean_workspace: true
jobs:
alpine:
resources:
- docker
tasks:
- fetch:
stage: build_unit
job: build_unit
is_file: yes
source: dojo_linux_amd64
destination: bin
- exec:
command: bash
arguments:
- -c
- ./tasks symlink linux
- exec:
command: bash
arguments:
- -c
- ./tasks e2e alpine
- exec:
command: bash
arguments:
- -c
- ./tasks test_signals alpine
ubuntu18:
resources:
- docker
tasks:
- fetch:
stage: build_unit
job: build_unit
is_file: yes
source: dojo_linux_amd64
destination: bin
- exec:
command: bash
arguments:
- -c
- ./tasks symlink linux
- exec:
command: bash
arguments:
- -c
- ./tasks e2e ubuntu18
- exec:
command: bash
arguments:
- -c
- ./tasks test_signals ubuntu18
- test_images:
clean_workspace: true
jobs:
linux:
resources:
- docker
tasks:
- fetch:
stage: build_unit
job: build_unit
is_file: yes
source: dojo_linux_amd64
destination: bin
- exec:
command: bash
arguments:
- -c
- ./tasks symlink linux
- exec:
command: bash
arguments:
- -c
- cd image_scripts && ./tasks build
- exec:
command: bash
arguments:
- -c
- cd image_scripts && ./tasks test_scripts
- exec:
command: bash
arguments:
- -c
- cd image_scripts && ./tasks e2e
- release:
clean_workspace: true
secure_variables:
GITHUB_TOKEN: "AES:9mQGklAskrmLBczL1b/UXQ==:u/Kt5dVTpXlDIOTN7ndS6SId01ryLQK+8OorJS7ZA8EECQvc04daQkLA+gRuzHNg"
approval:
type: manual
jobs:
code:
resources:
- docker
tasks:
- exec:
command: bash
arguments:
- -c
- ./tasks verify_version
- fetch:
stage: build_unit
job: build_unit
is_file: yes
source: dojo_linux_amd64
destination: bin
- fetch:
stage: build_unit
job: build_unit
is_file: yes
source: dojo_darwin_amd64
destination: bin
- exec:
command: bash
arguments:
- -c
- ./tasks release
- exec:
command: bash
arguments:
- -c
- ./tasks release_gh
- exec:
command: bash
arguments:
- -c
- ./tasks homebrew_tap