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