@@ -6,22 +6,30 @@ platform:
6
6
arch : amd64
7
7
8
8
steps :
9
- - name : submodules
10
- image : alpine/git
9
+ - name : cache:restore
10
+ image : codercom/nbin:centos
11
11
commands :
12
- - git submodule update --init
12
+ - yum install -y libxkbfile-devel libsecret-devel
13
+ - . /opt/rh/devtoolset-6/enable
14
+ - ./scripts/cacher.sh
13
15
14
- - name : cache:restore
16
+ - name : lint
15
17
image : node:12
16
18
commands :
17
- - ./scripts/cacher.sh
19
+ - yarn lint
20
+
21
+ - name : test
22
+ image : codercom/nbin:centos
23
+ commands :
24
+ - yum install -y openssl
25
+ - yarn test
18
26
19
27
- name : build
20
28
image : codercom/nbin:centos
21
29
commands :
22
30
- yum install -y libxkbfile-devel libsecret-devel
23
31
- . /opt/rh/devtoolset-6/enable
24
- - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
32
+ - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
25
33
26
34
- name : cache:package
27
35
image : node:12
@@ -40,10 +48,10 @@ steps:
40
48
when :
41
49
event : push
42
50
43
- - name : test
44
- image : node:12
51
+ - name : test:build
52
+ image : codercom/nbin:centos
45
53
commands :
46
- - yarn test
54
+ - yarn test:build
47
55
48
56
- name : publish:github
49
57
image : plugins/github-release
@@ -90,21 +98,28 @@ platform:
90
98
arch : amd64
91
99
92
100
steps :
93
- - name : submodules
94
- image : alpine/git
95
- commands :
96
- - git submodule update --init
97
-
98
101
- name : cache:restore
99
102
image : node:12-alpine
100
103
commands :
104
+ - apk add libxkbfile-dev libsecret-dev build-base git bash python
101
105
- ./scripts/cacher.sh
102
106
107
+ - name : lint
108
+ image : node:12-alpine
109
+ commands :
110
+ - yarn lint
111
+
112
+ - name : test
113
+ image : node:12-alpine
114
+ commands :
115
+ - apk add openssl
116
+ - yarn test
117
+
103
118
- name : build
104
119
image : node:12-alpine
105
120
commands :
106
121
- apk add libxkbfile-dev libsecret-dev build-base git bash python
107
- - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
122
+ - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
108
123
109
124
- name : cache:package
110
125
image : node:12-alpine
@@ -123,10 +138,10 @@ steps:
123
138
when :
124
139
event : push
125
140
126
- - name : test
141
+ - name : test:build
127
142
image : node:12-alpine
128
143
commands :
129
- - yarn test
144
+ - yarn test:build
130
145
131
146
- name : publish:github
132
147
image : plugins/github-release
@@ -159,22 +174,27 @@ platform:
159
174
arch : arm64
160
175
161
176
steps :
162
- - name : submodules
163
- image : alpine
164
- commands :
165
- - apk add git
166
- - git submodule update --init
167
-
168
177
- name : cache:restore
169
178
image : node:12
170
179
commands :
180
+ - apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
171
181
- ./scripts/cacher.sh
172
182
183
+ - name : lint
184
+ image : node:12
185
+ commands :
186
+ - yarn lint
187
+
188
+ - name : test
189
+ image : node:12
190
+ commands :
191
+ - yarn test
192
+
173
193
- name : build
174
194
image : node:12
175
195
commands :
176
196
- apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
177
- - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
197
+ - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
178
198
179
199
- name : cache:package
180
200
image : node:12
@@ -193,10 +213,10 @@ steps:
193
213
when :
194
214
event : push
195
215
196
- - name : test
216
+ - name : test:build
197
217
image : node:12
198
218
commands :
199
- - yarn test
219
+ - yarn test:build
200
220
201
221
- name : publish:github
202
222
image : plugins/github-release
@@ -243,22 +263,28 @@ platform:
243
263
arch : arm64
244
264
245
265
steps :
246
- - name : submodules
247
- image : alpine
248
- commands :
249
- - apk add git
250
- - git submodule update --init
251
-
252
266
- name : cache:restore
253
267
image : node:12-alpine
254
268
commands :
269
+ - apk add libxkbfile-dev libsecret-dev build-base git bash python
255
270
- ./scripts/cacher.sh
256
271
272
+ - name : lint
273
+ image : node:12-alpine
274
+ commands :
275
+ - yarn lint
276
+
277
+ - name : test
278
+ image : node:12-alpine
279
+ commands :
280
+ - apk add openssl
281
+ - yarn test
282
+
257
283
- name : build
258
284
image : node:12-alpine
259
285
commands :
260
286
- apk add libxkbfile-dev libsecret-dev build-base git bash python
261
- - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
287
+ - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
262
288
263
289
- name : cache:package
264
290
image : node:12-alpine
@@ -277,10 +303,10 @@ steps:
277
303
when :
278
304
event : push
279
305
280
- - name : test
306
+ - name : test:build
281
307
image : node:12-alpine
282
308
commands :
283
- - yarn test
309
+ - yarn test:build
284
310
285
311
- name : publish:github
286
312
image : plugins/github-release
@@ -313,22 +339,27 @@ platform:
313
339
arch : arm
314
340
315
341
steps :
316
- - name : submodules
317
- image : alpine
318
- commands :
319
- - apk add git
320
- - git submodule update --init
321
-
322
342
- name : cache:restore
323
343
image : node:12
324
344
commands :
345
+ - apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
325
346
- ./scripts/cacher.sh
326
347
348
+ - name : lint
349
+ image : node:12
350
+ commands :
351
+ - yarn lint
352
+
353
+ - name : test
354
+ image : node:12
355
+ commands :
356
+ - yarn test
357
+
327
358
- name : build
328
359
image : node:12
329
360
commands :
330
361
- apt update && apt install -y build-essential git libsecret-1-dev libx11-dev libxkbfile-dev
331
- - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
362
+ - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
332
363
333
364
- name : cache:package
334
365
image : node:12
@@ -347,11 +378,11 @@ steps:
347
378
when :
348
379
event : push
349
380
350
- - name : test
381
+ - name : test:build
351
382
image : node:12
352
383
failure : ignore
353
384
commands :
354
- - yarn test
385
+ - yarn test:build
355
386
356
387
# - name: publish:github
357
388
# image: plugins/github-release
@@ -388,22 +419,28 @@ platform:
388
419
arch : arm
389
420
390
421
steps :
391
- - name : submodules
392
- image : alpine
393
- commands :
394
- - apk add git
395
- - git submodule update --init
396
-
397
422
- name : cache:restore
398
423
image : node:12-alpine
399
424
commands :
425
+ - apk add libxkbfile-dev libsecret-dev build-base git bash python
400
426
- ./scripts/cacher.sh
401
427
428
+ - name : lint
429
+ image : node:12-alpine
430
+ commands :
431
+ - yarn lint
432
+
433
+ - name : test
434
+ image : node:12-alpine
435
+ commands :
436
+ - apk add openssl
437
+ - yarn test
438
+
402
439
- name : build
403
440
image : node:12-alpine
404
441
commands :
405
442
- apk add libxkbfile-dev libsecret-dev build-base git bash python
406
- - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing so we can preserve cache for the next run'
443
+ - timeout 50m ./scripts/ci.bash || echo 'Timed out or failed; continuing to preserve cache for the next run'
407
444
408
445
- name : cache:package
409
446
image : node:12-alpine
@@ -422,11 +459,11 @@ steps:
422
459
when :
423
460
event : push
424
461
425
- - name : test
462
+ - name : test:build
426
463
image : node:12-alpine
427
464
failure : ignore
428
465
commands :
429
- - yarn test
466
+ - yarn test:build
430
467
431
468
# - name: publish:github
432
469
# image: plugins/github-release
0 commit comments