From 6d3da95a95790361aec4409eb67b4ec2649c4455 Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 30 Mar 2018 17:59:15 -0700 Subject: ci - breakout announce job to upload builds and screenshots --- .circleci/config.yml | 48 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 13 deletions(-) (limited to '.circleci/config.yml') diff --git a/.circleci/config.yml b/.circleci/config.yml index b0bd97ef0..14d693d7d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,12 +17,17 @@ workflows: - prep-deps-npm - test-e2e: requires: - - prep-build - prep-deps-npm - - test-screens: + - prep-build + - job-screens: requires: + - prep-deps-npm - prep-build + - job-announce: + requires: - prep-deps-npm + - prep-build + - job-screens - test-unit: requires: - prep-deps-npm @@ -49,7 +54,7 @@ workflows: - test-lint - test-unit - test-e2e - - test-screens + - job-screens - test-integration-mascara-chrome - test-integration-mascara-firefox - test-integration-flat-chrome @@ -103,15 +108,7 @@ jobs: key: build-cache-{{ .Revision }} paths: - dist - - store_artifacts: - path: dist/mascara - destination: builds/mascara - - store_artifacts: - path: builds - destination: builds - - run: - name: build:announce - command: ./development/metamaskbot-build-announce.js + - builds prep-scss: docker: @@ -159,7 +156,7 @@ jobs: path: test-artifacts destination: test-artifacts - test-screens: + job-screens: docker: - image: circleci/node:8-browsers steps: @@ -171,9 +168,34 @@ jobs: - run: name: Test command: npm run test:screens + - save_cache: + key: job-screens-{{ .Revision }} + paths: + - test-artifacts + + job-announce: + docker: + - image: circleci/node:8-browsers + steps: + - checkout + - restore_cache: + key: dependency-cache-{{ checksum "package-lock.json" }} + - restore_cache: + key: build-cache-{{ .Revision }} + - restore_cache: + key: job-screens-{{ .Revision }} + - store_artifacts: + path: dist/mascara + destination: builds/mascara + - store_artifacts: + path: builds + destination: builds - store_artifacts: path: test-artifacts destination: test-artifacts + - run: + name: build:announce + command: ./development/metamaskbot-build-announce.js test-unit: docker: -- cgit v1.2.3