Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: 2
- jobs:
- lint_ledger:
- docker:
- - image: gcr.io/visor-dev/tax-io/flake8:master
- auth:
- username: _json_key
- password: $GCR_CREDS
- steps:
- - checkout
- - run:
- name: Run flake8 on ledger
- command: flake8 ledger
- lint_protos:
- docker:
- - image: gcr.io/visor-dev/github-visor-tax-tax-io/prototool:master
- auth:
- username: _json_key
- password: $GCR_CREDS
- steps:
- - checkout
- - run:
- name: Lint Protos
- command: prototool lint ./protos
- # Admin
- install_admin_dependencies:
- docker:
- - image: circleci/node:8.11-browsers
- - user: node
- steps:
- - checkout
- - run: npm install yarn
- - run:
- when: on_success
- command: yarn
- - save_cache:
- when: on_success
- name: Save Admin Cache
- key: v1-admin-{{ checksum "admin/yarn.lock" }}
- paths:
- - admin/node_modules
- restore_admin_cache:
- docker:
- - image: circleci/node:8.11-browsers
- - user: node
- steps:
- - restore_cache:
- name: Restore Admin Cache
- keys:
- - v1-admin-{{ checksum "admin/yarn.lock" }}
- - v1-admin
- lint_admin:
- docker:
- - image: circleci/node:8.11-browsers
- - user: node
- steps:
- - checkout
- - run:
- name: Lint Admin
- command: yarn run lint --format
- test_admin:
- docker:
- - image: circleci/node:8.11-browsers
- - user: node
- steps:
- - checkout
- - run:
- name: Unit Test
- command: yarn run test
- - run:
- name: Cypress
- when: on_success
- environment:
- TERM: xterm
- command: |
- yarn exec cypress install
- yarn run cypress-junit
- build_admin:
- docker:
- - image: circleci/node:8.11-browsers
- - user: node
- steps:
- - checkout
- - run:
- name: Build Admin
- command: yarn run build-prod
- workflows:
- version: 2
- build:
- jobs:
- - lint_protos
- - lint_ledger
- lint_test_and_build_admin:
- jobs:
- - install_admin_dependencies
- - lint_admin
- requires:
- - restore_admin_cache
- - test_admin
- requires:
- - restore_admin_cache
- - build_admin
- requires:
- - lint_admin
- - test_admin
- - restore_admin_cache
Add Comment
Please, Sign In to add comment