aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-10 05:37:13 +0800
committerkumavis <aaron@kumavis.me>2018-03-10 05:37:13 +0800
commit79a0b22ea44eea3cc77b4c068fa0edddd1727c66 (patch)
treee012b84a0d2272bb316dbf521e400a50bed03b9d /.circleci
parent828ac9a232e4241e9c4b90be06059c63b29f787b (diff)
downloadtangerine-wallet-browser-79a0b22ea44eea3cc77b4c068fa0edddd1727c66.tar
tangerine-wallet-browser-79a0b22ea44eea3cc77b4c068fa0edddd1727c66.tar.gz
tangerine-wallet-browser-79a0b22ea44eea3cc77b4c068fa0edddd1727c66.tar.bz2
tangerine-wallet-browser-79a0b22ea44eea3cc77b4c068fa0edddd1727c66.tar.lz
tangerine-wallet-browser-79a0b22ea44eea3cc77b4c068fa0edddd1727c66.tar.xz
tangerine-wallet-browser-79a0b22ea44eea3cc77b4c068fa0edddd1727c66.tar.zst
tangerine-wallet-browser-79a0b22ea44eea3cc77b4c068fa0edddd1727c66.zip
ci - parallize flat + mascara integration tests
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml57
1 files changed, 49 insertions, 8 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index e574febf9..40e37d2b6 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -2,19 +2,23 @@ version: 2
workflows:
version: 2
- build_and_test:
+ full_test:
jobs:
- prep-deps
- test-lint:
requires:
- prep-deps
- - test-coverage:
+ - test-unit:
requires:
- prep-deps
- - test-integration:
+ - test-integration-mascara:
requires:
- prep-deps
-
+ - prep-scss
+ - test-integration-flat:
+ requires:
+ - prep-deps
+ - prep-scss
jobs:
prep-deps:
@@ -34,6 +38,26 @@ jobs:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- 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:
docker:
- image: circleci/node:8-browsers
@@ -44,7 +68,8 @@ jobs:
- run:
name: Test
command: npm run lint
- test-coverage:
+
+ test-unit:
docker:
- image: circleci/node:8-browsers
steps:
@@ -54,13 +79,29 @@ jobs:
- run:
name: test:coverage
command: npm run test:coverage
- test-integration:
+
+ test-integration-flat:
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:flat
+ 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
- command: npm run test:integration
+ name: test:integration:mascara
+ command: npm run test:mascara