aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2018-03-14 01:29:16 +0800
committerGitHub <noreply@github.com>2018-03-14 01:29:16 +0800
commit6857e5eb272637841ae61098caa185cd3d9bbd49 (patch)
tree1a04e2d3d3d3cb5ab04de6696b182fb34d088655 /.circleci
parent08542c18e10c61b9e5862e95e7a5a18d479f2dc1 (diff)
parent4bc69f72c3033cc9ea3e732f48da22d15c41a972 (diff)
downloadtangerine-wallet-browser-6857e5eb272637841ae61098caa185cd3d9bbd49.tar.gz
tangerine-wallet-browser-6857e5eb272637841ae61098caa185cd3d9bbd49.tar.zst
tangerine-wallet-browser-6857e5eb272637841ae61098caa185cd3d9bbd49.zip
Merge pull request #3518 from MetaMask/ci-moar-fast
CI - make CI moar fast
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml58
1 files changed, 54 insertions, 4 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 9cd0a24ec..c14909783 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -15,12 +15,20 @@ workflows:
- test-unit:
requires:
- prep-deps-npm
- - test-integration-mascara:
+ - test-integration-mascara-chrome:
+ requires:
+ - prep-deps-npm
+ - prep-scss
+ - test-integration-mascara-firefox:
requires:
- prep-deps-npm
- prep-deps-firefox
- prep-scss
- - test-integration-flat:
+ - test-integration-flat-chrome:
+ requires:
+ - prep-deps-npm
+ - prep-scss
+ - test-integration-flat-firefox:
requires:
- prep-deps-npm
- prep-deps-firefox
@@ -99,7 +107,9 @@ jobs:
name: test:coverage
command: npm run test:coverage
- test-integration-flat:
+ test-integration-flat-firefox:
+ environment:
+ browsers: '["Firefox"]'
docker:
- image: circleci/node:8-browsers
steps:
@@ -125,7 +135,28 @@ jobs:
name: test:integration:flat
command: npm run test:flat
- test-integration-mascara:
+ test-integration-flat-chrome:
+ environment:
+ browsers: '["Chrome"]'
+ docker:
+ - image: circleci/node:8-browsers
+ steps:
+ - checkout
+ - restore_cache:
+ key: dependency-cache-{{ checksum "package-lock.json" }}
+ - run:
+ name: Get Scss Cache key
+ # this allows us to checksum against a whole directory
+ command: find ui/app/css -type f -exec md5sum {} \; | sort -k 2 > scss_checksum
+ - restore_cache:
+ key: scss-cache-{{ checksum "scss_checksum" }}
+ - run:
+ name: test:integration:flat
+ command: npm run test:flat
+
+ test-integration-mascara-firefox:
+ environment:
+ browsers: '["Firefox"]'
docker:
- image: circleci/node:8-browsers
steps:
@@ -150,3 +181,22 @@ jobs:
- run:
name: test:integration:mascara
command: npm run test:mascara
+
+ test-integration-mascara-chrome:
+ environment:
+ browsers: '["Chrome"]'
+ docker:
+ - image: circleci/node:8-browsers
+ steps:
+ - checkout
+ - restore_cache:
+ key: dependency-cache-{{ checksum "package-lock.json" }}
+ - run:
+ name: Get Scss Cache key
+ # this allows us to checksum against a whole directory
+ command: find ui/app/css -type f -exec md5sum {} \; | sort -k 2 > scss_checksum
+ - restore_cache:
+ key: scss-cache-{{ checksum "scss_checksum" }}
+ - run:
+ name: test:integration:mascara
+ command: npm run test:mascara