1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- 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
- docker-build:
- docker:
- - image: docker:stable
- steps:
- - checkout
- - setup_remote_docker
- - run: docker build . --no-cache -t threema/threema-web:${CIRCLE_BRANCH}
- 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
- - docker-build
|