Guest User

Untitled

a guest
Jun 26th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. version: 2
  2. jobs:
  3. lint_ledger:
  4. docker:
  5. - image: gcr.io/visor-dev/tax-io/flake8:master
  6. auth:
  7. username: _json_key
  8. password: $GCR_CREDS
  9. steps:
  10. - checkout
  11. - run:
  12. name: Run flake8 on ledger
  13. command: flake8 ledger
  14. lint_protos:
  15. docker:
  16. - image: gcr.io/visor-dev/github-visor-tax-tax-io/prototool:master
  17. auth:
  18. username: _json_key
  19. password: $GCR_CREDS
  20. steps:
  21. - checkout
  22. - run:
  23. name: Lint Protos
  24. command: prototool lint ./protos
  25. # Admin
  26. install_admin_dependencies:
  27. docker:
  28. - image: circleci/node:8.11-browsers
  29. - user: node
  30. steps:
  31. - checkout
  32. - run: npm install yarn
  33. - run:
  34. when: on_success
  35. command: yarn
  36. - save_cache:
  37. when: on_success
  38. name: Save Admin Cache
  39. key: v1-admin-{{ checksum "admin/yarn.lock" }}
  40. paths:
  41. - admin/node_modules
  42. restore_admin_cache:
  43. docker:
  44. - image: circleci/node:8.11-browsers
  45. - user: node
  46. steps:
  47. - restore_cache:
  48. name: Restore Admin Cache
  49. keys:
  50. - v1-admin-{{ checksum "admin/yarn.lock" }}
  51. - v1-admin
  52. lint_admin:
  53. docker:
  54. - image: circleci/node:8.11-browsers
  55. - user: node
  56. steps:
  57. - checkout
  58. - run:
  59. name: Lint Admin
  60. command: yarn run lint --format
  61. test_admin:
  62. docker:
  63. - image: circleci/node:8.11-browsers
  64. - user: node
  65. steps:
  66. - checkout
  67. - run:
  68. name: Unit Test
  69. command: yarn run test
  70. - run:
  71. name: Cypress
  72. when: on_success
  73. environment:
  74. TERM: xterm
  75. command: |
  76. yarn exec cypress install
  77. yarn run cypress-junit
  78. build_admin:
  79. docker:
  80. - image: circleci/node:8.11-browsers
  81. - user: node
  82. steps:
  83. - checkout
  84. - run:
  85. name: Build Admin
  86. command: yarn run build-prod
  87. workflows:
  88. version: 2
  89. build:
  90. jobs:
  91. - lint_protos
  92. - lint_ledger
  93. lint_test_and_build_admin:
  94. jobs:
  95. - install_admin_dependencies
  96. - lint_admin
  97. requires:
  98. - restore_admin_cache
  99. - test_admin
  100. requires:
  101. - restore_admin_cache
  102. - build_admin
  103. requires:
  104. - lint_admin
  105. - test_admin
  106. - restore_admin_cache
Add Comment
Please, Sign In to add comment