@@ -312,6 +312,46 @@ jobs:
312
312
path : /build/_cli_output
313
313
destination : cli
314
314
315
+ # test and build cli extension
316
+ test_and_build_cli_ext :
317
+ docker :
318
+ - image : hasura/graphql-engine-extension-cli-builder:20200225
319
+ working_directory : ~/graphql-engine
320
+ steps :
321
+ - attach_workspace :
322
+ at : /build
323
+ - *skip_job_on_ciignore
324
+ - checkout
325
+ - restore_cache :
326
+ key :
327
+ cli-ext-npm-cache-v2-{{ checksum "cli-ext/package.json" }}-{{ checksum "cli-ext/package-lock.json" }}
328
+ - run :
329
+ name : install dependencies
330
+ working_directory : cli-ext
331
+ command : make ci-deps
332
+ - save_cache :
333
+ key :
334
+ cli-ext-npm-cache-v2-{{ checksum "cli-ext/package.json" }}-{{ checksum "cli-ext/package-lock.json" }}
335
+ paths :
336
+ - cli-ext/node_modules
337
+ - ~/.npm
338
+ - ~/.cache
339
+ - run :
340
+ name : build extension cli
341
+ working_directory : cli-ext
342
+ command : |
343
+ npm install -g pkg
344
+ npm run build
345
+ make deploy
346
+ make ci-copy-assets
347
+ - store_artifacts :
348
+ path : /build/_cli_ext_output
349
+ destination : cli_ext
350
+ - persist_to_workspace :
351
+ root : /build
352
+ paths :
353
+ - _cli_ext_output
354
+
315
355
# test and build cli
316
356
test_and_build_cli :
317
357
docker :
@@ -356,44 +396,35 @@ jobs:
356
396
paths :
357
397
- _cli_output
358
398
359
- test_and_build_cli_ext :
399
+ test_and_build_cli_migrations :
360
400
docker :
361
- - image : hasura/graphql-engine-extension- cli-builder:20200225
401
+ - image : hasura/graphql-engine-cli-migrations- builder:20200415
362
402
working_directory : ~/graphql-engine
363
403
steps :
364
404
- attach_workspace :
365
405
at : /build
366
406
- *skip_job_on_ciignore
367
407
- checkout
368
- - restore_cache :
369
- key :
370
- cli-ext-npm-cache-v2-{{ checksum "cli-ext/package.json" }}-{{ checksum "cli-ext/package-lock.json" }}
408
+ - *setup_remote_docker
371
409
- run :
372
- name : install dependencies
373
- working_directory : cli-ext
374
- command : make ci-deps
375
- - save_cache :
376
- key :
377
- cli-ext-npm-cache-v2-{{ checksum "cli-ext/package.json" }}-{{ checksum "cli-ext/package-lock.json" }}
378
- paths :
379
- - cli-ext/node_modules
380
- - ~/.npm
381
- - ~/.cache
410
+ name : Install Docker Compose
411
+ command : |
412
+ set -x
413
+ curl -L https://github.com/docker/compose/releases/download/1.25.3/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
414
+ chmod +x /usr/local/bin/docker-compose
382
415
- run :
383
- name : build extension cli
384
- working_directory : cli-ext
416
+ name : Build cli-migrations image
417
+ working_directory : scripts/ cli-migrations
385
418
command : |
386
- npm install -g pkg
387
- npm run build
388
- make deploy
389
- make ci-copy-assets
419
+ mkdir -p /build/_cli_migrations_output
420
+ make all
390
421
- store_artifacts :
391
- path : /build/_cli_ext_output
392
- destination : cli_ext
422
+ path : /build/_cli_migrations_output
423
+ destination : cli-migrations
393
424
- persist_to_workspace :
394
425
root : /build
395
426
paths :
396
- - _cli_ext_output
427
+ - _cli_migrations_output
397
428
398
429
# build console assets
399
430
build_console :
@@ -531,7 +562,7 @@ jobs:
531
562
532
563
workflows :
533
564
version : 2
534
- workflow_v20200120 :
565
+ workflow_v20200414 :
535
566
jobs :
536
567
- check_build_worthiness : *filter_only_vtags
537
568
- test_and_build_cli_ext :
@@ -599,6 +630,10 @@ workflows:
599
630
requires :
600
631
- test_and_build_cli_ext
601
632
- build_server
633
+ - test_and_build_cli_migrations :
634
+ << : *filter_only_vtags
635
+ requires :
636
+ - test_and_build_cli
602
637
- test_console :
603
638
<< : *filter_only_vtags
604
639
requires :
@@ -610,4 +645,5 @@ workflows:
610
645
requires :
611
646
- build_image
612
647
- test_console
648
+ - test_and_build_cli_migrations
613
649
- all_server_tests_pass
0 commit comments