123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- version: 2
- references:
- test-steps: &test-steps
- - checkout
- - restore_cache:
- keys:
- - v2-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- - run: npm install
- - run: npm run build
- - run: npm run ${BUILDTARGET}
- - run: npm run ${TESTTARGET}
- - save_cache:
- key: v2-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- paths:
- - node_modules
- jobs:
- unittest-node8:
- docker:
- - image: circleci/node:8-browsers
- steps: *test-steps
- environment:
- BUILDTARGET: build:unittests
- TESTTARGET: test:unit
- unittest-node10:
- docker:
- - image: circleci/node:10-browsers
- steps: *test-steps
- environment:
- BUILDTARGET: build:unittests
- TESTTARGET: test:unit
- uitest-firefox:
- docker:
- - image: circleci/node:10-browsers
- steps: *test-steps
- environment:
- BUILDTARGET: build:uitests
- TESTTARGET: test:ui firefox
- uitest-chrome:
- docker:
- - image: circleci/node:10-browsers
- steps: *test-steps
- environment:
- BUILDTARGET: build:uitests
- TESTTARGET: test:ui chrome
- dist:
- docker:
- - image: circleci/node:10-browsers
- steps:
- - checkout
- - restore_cache:
- keys:
- - v2-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- - run: npm install --release
- - run: npm run dist
- - save_cache:
- key: v2-dependencies-{{ .Environment.CIRCLE_JOB }}-{{ arch }}-{{ checksum "package.json" }}
- paths:
- - node_modules
- lint:
- docker:
- - image: circleci/node:8-browsers
- steps:
- - checkout
- - restore_cache:
- keys:
- - v2-dependencies-test-node8-{{ arch }}-{{ checksum "package.json" }}
- - run: npm install
- - run: npm run lint
- workflows:
- version: 2
- build:
- jobs:
- - unittest-node8
- - unittest-node10
- - uitest-firefox
- - uitest-chrome
- - dist
- - lint
|