1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 20:02:58 +01:00

ci - parallize flat + mascara integration tests

This commit is contained in:
kumavis 2018-03-09 13:37:13 -08:00
parent 828ac9a232
commit 79a0b22ea4

View File

@ -2,19 +2,23 @@ version: 2
workflows: workflows:
version: 2 version: 2
build_and_test: full_test:
jobs: jobs:
- prep-deps - prep-deps
- test-lint: - test-lint:
requires: requires:
- prep-deps - prep-deps
- test-coverage: - test-unit:
requires: requires:
- prep-deps - prep-deps
- test-integration: - test-integration-mascara:
requires: requires:
- prep-deps - prep-deps
- prep-scss
- test-integration-flat:
requires:
- prep-deps
- prep-scss
jobs: jobs:
prep-deps: prep-deps:
@ -34,6 +38,26 @@ jobs:
key: dependency-cache-{{ checksum "package-lock.json" }} key: dependency-cache-{{ checksum "package-lock.json" }}
paths: paths:
- node_modules - node_modules
prep-scss:
docker:
- image: circleci/node:8-browsers
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Get Cache key
command: ls -laR ui/app/css/ > scss_checksum
- restore_cache:
key: scss-cache-{{ checksum "scss_checksum" }}
- run:
name: Build Scss
command: gulp build:scss
- save_cache:
key: scss-cache-{{ checksum "scss_checksum" }}
paths:
- ui/app/css/output
test-lint: test-lint:
docker: docker:
- image: circleci/node:8-browsers - image: circleci/node:8-browsers
@ -44,7 +68,8 @@ jobs:
- run: - run:
name: Test name: Test
command: npm run lint command: npm run lint
test-coverage:
test-unit:
docker: docker:
- image: circleci/node:8-browsers - image: circleci/node:8-browsers
steps: steps:
@ -54,13 +79,29 @@ jobs:
- run: - run:
name: test:coverage name: test:coverage
command: npm run test:coverage command: npm run test:coverage
test-integration:
test-integration-flat:
docker: docker:
- image: circleci/node:8-browsers - image: circleci/node:8-browsers
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }} key: dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: scss-cache-{{ checksum "scss_checksum" }}
- run: - run:
name: test:integration name: test:integration:flat
command: npm run test:integration command: npm run test:flat
test-integration-mascara:
docker:
- image: circleci/node:8-browsers
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- restore_cache:
key: scss-cache-{{ checksum "scss_checksum" }}
- run:
name: test:integration:mascara
command: npm run test:mascara