aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2018-03-28 07:24:47 +0800
committerGitHub <noreply@github.com>2018-03-28 07:24:47 +0800
commitcd3e092c14ce4541b36cd0fa15973057c7f2d561 (patch)
treebaf6cbddfdd0ed87df91a257a7b4f074d4907bcf
parent246287ff1c7784a171786f66cb6dd2b4686e84c4 (diff)
parentfe8472ab22fbff8d679943f0c65efd5d66c2a9c7 (diff)
downloadtangerine-wallet-browser-cd3e092c14ce4541b36cd0fa15973057c7f2d561.tar
tangerine-wallet-browser-cd3e092c14ce4541b36cd0fa15973057c7f2d561.tar.gz
tangerine-wallet-browser-cd3e092c14ce4541b36cd0fa15973057c7f2d561.tar.bz2
tangerine-wallet-browser-cd3e092c14ce4541b36cd0fa15973057c7f2d561.tar.lz
tangerine-wallet-browser-cd3e092c14ce4541b36cd0fa15973057c7f2d561.tar.xz
tangerine-wallet-browser-cd3e092c14ce4541b36cd0fa15973057c7f2d561.tar.zst
tangerine-wallet-browser-cd3e092c14ce4541b36cd0fa15973057c7f2d561.zip
Merge pull request #3755 from MetaMask/revert-3730-revert-3665-ci-build
Restore "Ci - introduce a build job"
-rw-r--r--.circleci/config.yml43
1 files changed, 40 insertions, 3 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 8ebf569a5..75819fc6e 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -6,6 +6,9 @@ workflows:
jobs:
- prep-deps-npm
- prep-deps-firefox
+ - prep-build:
+ requires:
+ - prep-deps-npm
- prep-scss:
requires:
- prep-deps-npm
@@ -14,6 +17,7 @@ workflows:
- prep-deps-npm
- test-e2e:
requires:
+ - prep-build
- prep-deps-npm
- test-unit:
requires:
@@ -36,6 +40,15 @@ workflows:
- prep-deps-npm
- prep-deps-firefox
- prep-scss
+ - all-tests-pass:
+ requires:
+ - test-lint
+ - test-unit
+ - test-e2e
+ - test-integration-mascara-chrome
+ - test-integration-mascara-firefox
+ - test-integration-flat-chrome
+ - test-integration-flat-firefox
jobs:
prep-deps-npm:
@@ -68,6 +81,23 @@ jobs:
paths:
- firefox
+ prep-build:
+ docker:
+ - image: circleci/node:8-browsers
+ steps:
+ - checkout
+ - restore_cache:
+ key: dependency-cache-{{ checksum "package-lock.json" }}
+ - run:
+ name: build:dist
+ command: npm run dist
+ - run:
+ name: build:debug
+ command: find dist/ -type f -exec md5sum {} \; | sort -k 2
+ - save_cache:
+ key: build-cache-{{ .Revision }}
+ paths:
+ - dist
prep-scss:
docker:
@@ -106,9 +136,8 @@ jobs:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- - run:
- name: Build
- command: npm run dist
+ - restore_cache:
+ key: build-cache-{{ .Revision }}
- run:
name: Test
command: npm run test:e2e
@@ -217,3 +246,11 @@ jobs:
- run:
name: test:integration:mascara
command: npm run test:mascara
+
+ all-tests-pass:
+ docker:
+ - image: circleci/node:8-browsers
+ steps:
+ - run:
+ name: All Tests Passed
+ command: echo 'weew - everything passed!'