-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
247 lines (238 loc) · 7.39 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
kind: pipeline
name: Build and Test Openmina Frontend
type: docker
steps:
- name: set-docker-buildkit
image: alpine
environment:
DOCKER_BUILDKIT: "0"
commands:
- echo "export DOCKER_BUILDKIT=0" >> $HOME/.bashrc
- source $HOME/.bashrc
- name: build
image: docker:latest
environment:
DOCKER_BUILDKIT: "0"
commands:
- COMMIT_SHORT_SHA=$(echo $DRONE_COMMIT_SHA | cut -c 1-7)
- docker build --no-cache -t directcuteo/ocaml-based-fe:latest -f projects/ocaml-based-fe/Dockerfile .
- docker build --no-cache -t directcuteo/ocaml-based-fe:$COMMIT_SHORT_SHA -f projects/ocaml-based-fe/Dockerfile .
volumes:
- name: docker_sock
path: /var/run/docker.sock
depends_on:
- set-docker-buildkit
- name: push
image: docker:latest
commands:
- echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- docker push directcuteo/ocaml-based-fe:latest
- docker push directcuteo/ocaml-based-fe:${DRONE_COMMIT_SHA:0:7}
volumes:
- name: docker_sock
path: /var/run/docker.sock
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
depends_on:
- build
# - name: frontend-server
# image: directcuteo/ocaml-based-fe:${DRONE_COMMIT_SHA:0:7}
# pull: if-not-exists
# detach: true
# privileged: true
# depends_on:
# - push
#
# - name: prepare-tests
# image: cypress/included:12.6.0
# commands:
# - npm install
# depends_on:
# - push
#
# - name: verify
# image: appropriate/curl
# commands:
# - curl -I http://frontend-server:80
# depends_on:
# - prepare-tests
# - name: overview-nodes-data
# image: cypress/included:12.6.0
# commands:
# - cypress run --config-file "cypress.config.js" --spec "cypress/e2e/overview/nodes/overview-nodes-data.cy.ts"
# depends_on:
# - prepare-tests
#
# - name: overview-nodes-table
# image: cypress/included:12.6.0
# commands:
# - cypress run --config-file "cypress.config.js" --spec "cypress/e2e/overview/nodes/overview-nodes-table.cy.ts"
# depends_on:
# - prepare-tests
#
# - name: overview-nodes-toolbar
# image: cypress/included:12.6.0
# commands:
# - cypress run --config-file "cypress.config.js" --spec "cypress/e2e/overview/nodes/overview-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:
# - overview-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