aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-10 05:15:36 +0800
committerkumavis <aaron@kumavis.me>2018-03-10 05:15:36 +0800
commit828ac9a232e4241e9c4b90be06059c63b29f787b (patch)
tree706d32bc02cc6368880838e3e3dd76b8eef80cff /.circleci
parent69345770fbe3bd111772e3f6f49635ad38fe5a5b (diff)
downloadtangerine-wallet-browser-828ac9a232e4241e9c4b90be06059c63b29f787b.tar
tangerine-wallet-browser-828ac9a232e4241e9c4b90be06059c63b29f787b.tar.gz
tangerine-wallet-browser-828ac9a232e4241e9c4b90be06059c63b29f787b.tar.bz2
tangerine-wallet-browser-828ac9a232e4241e9c4b90be06059c63b29f787b.tar.lz
tangerine-wallet-browser-828ac9a232e4241e9c4b90be06059c63b29f787b.tar.xz
tangerine-wallet-browser-828ac9a232e4241e9c4b90be06059c63b29f787b.tar.zst
tangerine-wallet-browser-828ac9a232e4241e9c4b90be06059c63b29f787b.zip
ci - breakup npm test into parallel processes
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml39
1 files changed, 33 insertions, 6 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 06506c680..e574febf9 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -4,13 +4,20 @@ workflows:
version: 2
build_and_test:
jobs:
- - build
- - test:
+ - prep-deps
+ - test-lint:
requires:
- - build
+ - prep-deps
+ - test-coverage:
+ requires:
+ - prep-deps
+ - test-integration:
+ requires:
+ - prep-deps
+
jobs:
- build:
+ prep-deps:
docker:
- image: circleci/node:8-browsers
steps:
@@ -27,7 +34,7 @@ jobs:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- node_modules
- test:
+ test-lint:
docker:
- image: circleci/node:8-browsers
steps:
@@ -36,4 +43,24 @@ jobs:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Test
- command: npm test
+ command: npm run lint
+ test-coverage:
+ docker:
+ - image: circleci/node:8-browsers
+ steps:
+ - checkout
+ - restore_cache:
+ key: dependency-cache-{{ checksum "package-lock.json" }}
+ - run:
+ name: test:coverage
+ command: npm run test:coverage
+ test-integration:
+ docker:
+ - image: circleci/node:8-browsers
+ steps:
+ - checkout
+ - restore_cache:
+ key: dependency-cache-{{ checksum "package-lock.json" }}
+ - run:
+ name: test:integration
+ command: npm run test:integration