forked from neo4j-graphql/neo4j-graphql-js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
479 lines (408 loc) · 11.1 KB
/
config.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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
version: 2
references:
node10: &node10
- image: circleci/node:10-browsers
node12: &node12
- image: circleci/node:12-browsers
node14: &node14
- image: circleci/node:14-browsers
attach_workspace: &attach_workspace
attach_workspace:
at: ~/project
npm_cache_key: &npm_cache_key
v1-dependency-npm-{{ checksum "package-lock.json" }}-{{checksum "node-version" }}
restore_node_modules: &restore_node_modules
restore_cache:
keys:
- *npm_cache_key
- v1-dependency-npm-{{ checksum "package-lock.json" }}
- v1-dependency-npm-
cache_node_modules: &cache_node_modules
save_cache:
key: *npm_cache_key
paths:
- ./node_modules/
neo4j_cache_key: &neo4j_cache_key
v2-dependency-neo4j-{{ checksum "neo4j-version" }}
restore_neo4j: &restore_neo4j
restore_cache:
keys:
- *neo4j_cache_key
cache_neo4j: &cache_neo4j
save_cache:
key: *neo4j_cache_key
paths:
- ./neo4j/
# can only use CircleCI or context environment variables in cache keys, so write to file
create_neo4j_cache_key: &create_neo4j_cache_key
run:
name: Create Neo4j cache key
command: echo "v1-$NEO4J_DIST\n$NEO4J_VERSION\n$APOC_VERSION\n$DATASTORE_VERSION" > neo4j-version
report_coverage: &report_coverage
run:
name: run report coverage tool
command: npm install codecov && npm run report-coverage
install_node_modules_steps: &install_node_modules_steps
- checkout
- run:
name: Create Node/NPM cache key
command: echo "$(node -v)\n$(npm -v)" > node-version
- *restore_node_modules
- run:
name: Install dependencies
command: npm install --no-save
- *cache_node_modules
- persist_to_workspace:
root: .
paths:
- .
install_neo4j: &install_neo4j
run:
name: Provision neo4j
command: ./scripts/install-neo4j.sh
start_neo4j: &start_neo4j
run:
name: Start Neo4j Server
command: ./scripts/start-neo4j.sh
restart_neo4j: &restart_neo4j
run:
name: Clear and restart Neo4j
command: ./scripts/stop-and-clear-neo4j.sh
start_graphql: &start_graphql
run:
name: Start GraphQL Server
command: node -r @babel/register ./example/apollo-server/movies-middleware.js
background: true
start_gateway: &start_gateway
run:
name: Start Apollo Gateway
command: node -r @babel/register ./example/apollo-federation/gateway.js
background: true
wait_for_graphql: &wait_for_graphql
run:
name: Wait for GraphQL server to be available
command: ./scripts/wait-for-graphql.sh
parse_tck: &parse_tck
run:
name: Parse TCK and generate TCK tests to be run
command: npm run parse-tck
run_tests: &run_tests
run:
name: Run Tests
command: npm run test-all
run_gateway_tests: &run_gateway_tests
run:
name: Run Gateway tests
command: npm run test-gateway
env_neo4j35ce: &env_neo4j35ce
NEO4J_DIST: 'community'
NEO4J_VERSION: '3.5.21'
APOC_VERSION: '3.5.0.14'
DATASTORE_VERSION: '3_5'
env_neo4j35ee: &env_neo4j35ee
NEO4J_DIST: 'enterprise'
NEO4J_VERSION: '3.5.21'
APOC_VERSION: '3.5.0.14'
DATASTORE_VERSION: '3_5'
env_neo4j40ce: &env_neo4j40ce
NEO4J_DIST: 'community'
NEO4J_VERSION: '4.0.7'
APOC_VERSION: '4.0.0.18'
DATASTORE_VERSION: '4_0'
env_neo4j40ee: &env_neo4j40ee
NEO4J_DIST: 'enterprise'
NEO4J_VERSION: '4.0.7'
APOC_VERSION: '4.0.0.18'
DATASTORE_VERSION: '4_0'
env_neo4j41ee: &env_neo4j41ee
NEO4J_DIST: 'enterprise'
NEO4J_VERSION: '4.1.0'
APOC_VERSION: '4.1.0.2'
DATASTORE_VERSION: '4_0'
env_neo4j41ce: &env_neo4j41ce
NEO4J_DIST: 'community'
NEO4J_VERSION: '4.1.0'
APOC_VERSION: '4.1.0.2'
DATASTORE_VERSION: '4_0'
env_neo4j42ce: &env_neo4j42ce
NEO4J_DIST: 'community'
NEO4J_VERSION: '4.2.0'
APOC_VERSION: '4.2.0.0'
DATASTORE_VERSION: '4_0'
env_neo4j42ee: &env_neo4j42ee
NEO4J_DIST: 'enterprise'
NEO4J_VERSION: '4.2.0'
APOC_VERSION: '4.2.0.0'
DATASTORE_VERSION: '4_0'
install_neo4j_steps: &install_neo4j_steps
- checkout
- *create_neo4j_cache_key
- *restore_neo4j
- *install_neo4j
- *cache_neo4j
run_tests_steps: &run_tests_steps
- *attach_workspace
- *create_neo4j_cache_key
- *restore_neo4j
- *start_neo4j
- *start_graphql
- *start_gateway
- *wait_for_graphql
- *parse_tck
- *run_tests
- *restart_neo4j
- *run_gateway_tests
- *report_coverage
jobs:
# Neo4j installations - cache these so fan out is faster
install_neo4j35ce:
docker: *node10
environment: *env_neo4j35ce
steps: *install_neo4j_steps
install_neo4j35ee:
docker: *node10
environment: *env_neo4j35ee
steps: *install_neo4j_steps
install_neo4j40ce:
docker: *node10
environment: *env_neo4j40ce
steps: *install_neo4j_steps
install_neo4j40ee:
docker: *node10
environment: *env_neo4j40ee
steps: *install_neo4j_steps
install_neo4j41ce:
docker: *node10
environment: *env_neo4j41ce
steps: *install_neo4j_steps
install_neo4j41ee:
docker: *node10
environment: *env_neo4j41ee
steps: *install_neo4j_steps
install_neo4j42ee:
docker: *node10
environment: *env_neo4j42ee
steps: *install_neo4j_steps
install_neo4j42ce:
docker: *node10
environment: *env_neo4j42ce
steps: *install_neo4j_steps
# Node 10
install_for_node10:
docker: *node10
steps: *install_node_modules_steps
neo4j35ce_node10:
docker: *node10
environment: *env_neo4j35ce
steps: *run_tests_steps
neo4j35ee_node10:
docker: *node10
environment: *env_neo4j35ee
steps: *run_tests_steps
neo4j40ce_node10:
docker: *node10
environment: *env_neo4j40ce
steps: *run_tests_steps
neo4j40ee_node10:
docker: *node10
environment: *env_neo4j40ee
steps: *run_tests_steps
neo4j41ce_node10:
docker: *node10
environment: *env_neo4j41ce
steps: *run_tests_steps
neo4j41ee_node10:
docker: *node10
environment: *env_neo4j41ee
steps: *run_tests_steps
neo4j42ee_node10:
docker: *node10
environment: *env_neo4j42ee
steps: *run_tests_steps
neo4j42ce_node10:
docker: *node10
environment: *env_neo4j42ee
steps: *run_tests_steps
# Node 12
install_for_node12:
docker: *node12
steps: *install_node_modules_steps
neo4j35ce_node12:
docker: *node12
environment: *env_neo4j35ce
steps: *run_tests_steps
neo4j35ee_node12:
docker: *node12
environment: *env_neo4j35ee
steps: *run_tests_steps
neo4j40ce_node12:
docker: *node12
environment: *env_neo4j40ce
steps: *run_tests_steps
neo4j40ee_node12:
docker: *node12
environment: *env_neo4j40ee
steps: *run_tests_steps
neo4j41ce_node12:
docker: *node12
environment: *env_neo4j41ce
steps: *run_tests_steps
neo4j41ee_node12:
docker: *node12
environment: *env_neo4j41ee
steps: *run_tests_steps
neo4j42ee_node12:
docker: *node12
environment: *env_neo4j42ee
steps: *run_tests_steps
neo4j42ce_node12:
docker: *node12
environment: *env_neo4j42ee
steps: *run_tests_steps
# Node 14
install_for_node14:
docker: *node14
steps: *install_node_modules_steps
neo4j35ce_node14:
docker: *node14
environment: *env_neo4j35ce
steps: *run_tests_steps
neo4j35ee_node14:
docker: *node14
environment: *env_neo4j35ee
steps: *run_tests_steps
neo4j40ce_node14:
docker: *node14
environment: *env_neo4j40ce
steps: *run_tests_steps
neo4j40ee_node14:
docker: *node14
environment: *env_neo4j40ee
steps: *run_tests_steps
neo4j41ce_node14:
docker: *node14
environment: *env_neo4j41ce
steps: *run_tests_steps
neo4j41ee_node14:
docker: *node14
environment: *env_neo4j41ee
steps: *run_tests_steps
neo4j42ee_node14:
docker: *node14
environment: *env_neo4j42ee
steps: *run_tests_steps
neo4j42ce_node14:
docker: *node14
environment: *env_neo4j42ee
steps: *run_tests_steps
workflows:
version: 2
integration_test:
jobs:
- install_for_node10
- install_for_node12
- install_for_node14
- install_neo4j35ce
- install_neo4j35ee
- install_neo4j40ce
- install_neo4j40ee
- install_neo4j41ee
- install_neo4j41ce
- install_neo4j42ce
- install_neo4j42ee
- neo4j35ce_node10:
requires:
- install_neo4j35ce
- install_for_node10
- neo4j35ee_node10:
requires:
- install_neo4j35ee
- install_for_node10
- neo4j40ce_node10:
requires:
- install_neo4j40ce
- install_for_node10
- neo4j40ee_node10:
requires:
- install_neo4j41ee
- install_for_node10
- neo4j41ce_node10:
requires:
- install_neo4j41ce
- install_for_node10
- neo4j41ee_node10:
requires:
- install_neo4j40ee
- install_for_node10
- neo4j42ee_node10:
requires:
- install_neo4j42ee
- install_for_node10
- neo4j42ce_node10:
requires:
- install_neo4j42ce
- install_for_node10
- neo4j35ce_node12:
requires:
- install_neo4j35ce
- install_for_node12
- neo4j35ee_node12:
requires:
- install_neo4j35ee
- install_for_node12
- neo4j40ce_node12:
requires:
- install_neo4j40ce
- install_for_node12
- neo4j40ee_node12:
requires:
- install_neo4j40ee
- install_for_node12
- neo4j41ee_node12:
requires:
- install_neo4j41ee
- install_for_node12
- neo4j41ce_node12:
requires:
- install_neo4j41ce
- install_for_node12
- neo4j42ee_node12:
requires:
- install_neo4j42ee
- install_for_node12
- neo4j42ce_node12:
requires:
- install_neo4j42ce
- install_for_node12
- neo4j35ce_node14:
requires:
- install_neo4j35ce
- install_for_node14
- neo4j35ee_node14:
requires:
- install_neo4j35ee
- install_for_node14
- neo4j40ce_node14:
requires:
- install_neo4j40ce
- install_for_node14
- neo4j40ee_node14:
requires:
- install_neo4j40ee
- install_for_node14
- neo4j41ee_node14:
requires:
- install_neo4j41ee
- install_for_node14
- neo4j41ce_node14:
requires:
- install_neo4j41ce
- install_for_node14
- neo4j42ee_node14:
requires:
- install_neo4j42ee
- install_for_node14
- neo4j42ce_node14:
requires:
- install_neo4j42ce
- install_for_node14