-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
201 lines (176 loc) · 5.87 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
kind: pipeline
name: Build and Test Frontend
type: docker
steps:
- name: build
image: docker:latest
commands:
- docker build --no-cache -t directcuteo/mina-frontend:latest -f Dockerfile2 .
volumes:
- name: docker_sock
path: /var/run/docker.sock
- name: frontend-server
image: directcuteo/mina-frontend:latest
pull: if-not-exists
detach: true
privileged: true
depends_on:
- build
- name: prepare-tests
image: cypress/included:12.6.0
commands:
- npm install
depends_on:
- build
- name: dashboard-nodes-table
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/dashboard/nodes/dashboard-nodes-table.cy.ts"
depends_on:
- prepare-tests
# - name: dashboard-nodes-toolbar
# image: cypress/included:12.6.0
# commands:
# - cypress run --config-file "cypress.config.js" --spec "cypress/e2e/dashboard/nodes/dashboard-nodes-toolbar.cy.ts"
# depends_on:
# - prepare-tests
- name: network-messages-table
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/network/messages/network-messages-table.cy.ts"
depends_on:
- prepare-tests
- name: network-blocks-table
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/network/blocks/network-blocks-table.cy.ts"
depends_on:
- prepare-tests
- name: network-blocks-toolbar
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/network/blocks/network-blocks-toolbar.cy.ts"
depends_on:
- prepare-tests
- name: network-blocks-side-panel
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/network/blocks/network-blocks-side-panel.cy.ts"
depends_on:
- prepare-tests
- name: network-blocks-ipc-table
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/network/blocks-ipc/network-blocks-ipc-table.cy.ts"
depends_on:
- prepare-tests
- name: network-blocks-ipc-toolbar
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/network/blocks-ipc/network-blocks-ipc-toolbar.cy.ts"
depends_on:
- prepare-tests
- name: network-blocks-ipc-side-panel
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/network/blocks-ipc/network-blocks-ipc-side-panel.cy.ts"
depends_on:
- prepare-tests
- name: explorer-blocks-table
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/explorer/blocks/explorer-blocks-table.cy.ts"
depends_on:
- prepare-tests
- name: explorer-snark-pool-table
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/explorer/snark-pool/explorer-snark-pool-table.cy.ts"
depends_on:
- prepare-tests
- name: explorer-snark-pool-toolbar
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/explorer/snark-pool/explorer-snark-pool-toolbar.cy.ts"
depends_on:
- prepare-tests
- name: explorer-scan-state
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/explorer/scan-state/explorer-scan-state.cy.ts"
depends_on:
- prepare-tests
- name: explorer-snark-traces-table
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/explorer/snark-traces/explorer-snark-traces-table.cy.ts"
depends_on:
- prepare-tests
- name: explorer-snark-traces-toolbar
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/explorer/snark-traces/explorer-snark-traces-toolbar.cy.ts"
depends_on:
- prepare-tests
- name: web-node-wallet
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/web-node/wallet/web-node-wallet.cy.ts"
depends_on:
- prepare-tests
- name: web-node-logs
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/web-node/logs/web-node-logs.cy.ts"
depends_on:
- prepare-tests
- name: web-node-peers
image: cypress/included:12.6.0
commands:
- cypress run --config-file "cypress.config.js" --spec "cypress/e2e/web-node/peers/web-node-peers.cy.ts"
depends_on:
- prepare-tests
- name: copy-videos
image: alpine
commands:
- cp -R /drone/src/cypress/videos/ /tmp/cache
volumes:
- name: test-vol
path: /tmp/cache
mode: "rw"
temp: false
when:
status:
- failure
- success
depends_on:
- dashboard-nodes-table
- network-messages-table
- network-blocks-table
- network-blocks-toolbar
- network-blocks-side-panel
- network-blocks-ipc-table
- network-blocks-ipc-toolbar
- network-blocks-ipc-side-panel
- explorer-blocks-table
- explorer-snark-pool-table
- explorer-snark-pool-toolbar
- explorer-scan-state
- explorer-snark-traces-table
- explorer-snark-traces-toolbar
- web-node-wallet
- web-node-logs
- web-node-peers
image_pull_secrets:
- docker_pull_secret
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock
- name: test-vol
host:
path: /home/openmina/mina-frontend-videos
trigger:
branch:
- local
event: push