-
Notifications
You must be signed in to change notification settings - Fork 64
/
.drone.yml
138 lines (128 loc) · 2.65 KB
/
.drone.yml
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
---
# node env with current LTS: v18
kind: pipeline
type: docker
name: node LTS
platform:
arch: arm64
steps:
- name: install
image: node:20-alpine
commands:
- rm -rf packages/api-server
- npm set registry $NPM_REGISTRY
- node scripts/disable-dependency.js api-server
- npm install
- find node_modules/@ffprobe-installer -name ffprobe -exec chmod ugo+x {} \;
environment:
NPM_REGISTRY:
from_secret: npm_registry
- name: build
image: node:20-alpine
commands:
- npm run build
- name: test
image: node:20-alpine
commands:
- npm run test -- --workspace-concurrency=1
environment:
TAP_TIMEOUT: 60
- name: test:e2e setup
image: node:20-alpine
commands:
- apk add --no-cache git git-lfs
- git clone $E2E_DATA_REPO ./data
environment:
E2E_DATA_REPO:
from_secret: e2e_data_repo
when:
branch:
- master
- develop
# execute also on tagged feature/fix branches
- feature/*e2e*
- fix/*e2e*
event:
- push
- name: test:e2e - node v20 LTS
image: node:20-alpine
commands:
- apk add --no-cache perl vips-tools imagemagick
- npm run test:e2e
environment:
TZ: Europe/Berlin
GAUGE_HOME: /drone/src/.gauge
test_timeout: 120000 # 2 min timeout for gauge
when:
branch:
- master
- develop
# execute also on tagged feature/fix branches
- feature/*e2e*
- fix/*e2e*
event:
- push
- name: test - node v18
image: node:18-alpine
commands:
- npm run test -- --workspace-concurrency=1
environment:
TAP_TIMEOUT: 60
when:
branch:
- master
- develop
# execute also on tagged feature/fix branches
- feature/*e2e*
- fix/*e2e*
event:
- push
- name: test:e2e - node v18
image: node:18-alpine
commands:
- apk add --no-cache perl
- npm run test:e2e -- --tags run
environment:
TZ: Europe/Berlin
GAUGE_HOME: /drone/src/.gauge
test_timeout: 120000 # 2 min timeout for gauge
when:
branch:
- master
- develop
# execute also on tagged feature/fix branches
- feature/*e2e*
- fix/*e2e*
event:
- push
- name: test - node v16
image: node:16-alpine
commands:
- npm run test -- --workspace-concurrency=1
environment:
TAP_TIMEOUT: 60
when:
branch:
- master
- develop
# execute also on tagged feature/fix branches
- feature/*e2e*
- fix/*e2e*
event:
- push
- name: notify
image: sfelis/drone-email
settings:
from:
from_secret: mail_from
host:
from_secret: mail_host
port:
from_secret: mail_port
username:
from_secret: mail_username
password:
from_secret: mail_password
when:
status:
- failure