12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- version: 2
- references:
- unittest-steps: &unittest-steps
- - checkout
- - restore_cache:
- keys:
- - v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- - run: npm install
- - run: npm run build
- - run: npm run build:unittests
- - run: npm run test:unittests
- - save_cache:
- key: v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- paths:
- - node_modules
- jobs:
- unittest-node8:
- docker:
- - image: circleci/node:8-browsers
- steps: *unittest-steps
- unittest-node9:
- docker:
- - image: circleci/node:9-browsers
- steps: *unittest-steps
- uitest-firefox:
- docker:
- - image: circleci/node:9-browsers
- steps:
- - checkout
- - restore_cache:
- keys:
- - v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- - run: npm install
- - run: npm run build:uitests
- - run: npm run test:uitests firefox:headless
- - save_cache:
- key: v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- paths:
- - node_modules
- uitest-chrome:
- docker:
- - image: circleci/node:9-browsers
- steps:
- - checkout
- - restore_cache:
- keys:
- - v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- - run: npm install
- - run: npm run build:uitests
- - run: npm run test:uitests chrome:headless
- - save_cache:
- key: v1-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- paths:
- - node_modules
- lint:
- docker:
- - image: circleci/node:8-browsers
- steps:
- - checkout
- - restore_cache:
- keys:
- - v1-dependencies-test-node8-{{ arch }}-{{ checksum "package.json" }}
- - run: npm install
- - run: npm run lint
- workflows:
- version: 2
- build:
- jobs:
- - unittest-node8
- - unittest-node9
- - uitest-firefox
- - uitest-chrome
- - lint
|