aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-14 19:01:18 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-15 00:14:25 +0800
commit7fe26ee7196320a3478cd93b24329d69a826badb (patch)
tree7b4170aaa79c363c18e73e3b1624c4712536b23a /.circleci
parente16feb27f4ec1987259a87f360824a0158bd8b10 (diff)
downloaddexon-0x-contracts-7fe26ee7196320a3478cd93b24329d69a826badb.tar.gz
dexon-0x-contracts-7fe26ee7196320a3478cd93b24329d69a826badb.tar.zst
dexon-0x-contracts-7fe26ee7196320a3478cd93b24329d69a826badb.zip
Fix parallel coverage results reporting
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml30
1 files changed, 27 insertions, 3 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4143bd532..fdee10c84 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -40,6 +40,10 @@ jobs:
command: npm run testrpc -- --db testrpc_snapshot
background: true
- run: yarn lerna:run --scope 0x.js test:circleci
+ - save_cache:
+ key: coverage-0xjs-{{ .Environment.CIRCLE_SHA1 }}
+ paths:
+ - ~/repo/packages/0x.js/coverage/lcov.info
test-contracts:
docker:
- image: circleci/node:6.12
@@ -53,6 +57,10 @@ jobs:
command: npm run testrpc -- --db testrpc_snapshot
background: true
- run: yarn lerna:run --scope contracts test:circleci
+ - save_cache:
+ key: coverage-contracts-{{ .Environment.CIRCLE_SHA1 }}
+ paths:
+ - ~/repo/packages/contracts/coverage/lcov.info
test-deployer:
docker:
- image: circleci/node:6.12
@@ -97,6 +105,21 @@ jobs:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- run: yarn prettier:ci
+ submit-coverage:
+ docker:
+ - image: circleci/node:6.12
+ working_directory: ~/repo
+ steps:
+ - restore_cache:
+ keys:
+ - repo-{{ .Environment.CIRCLE_SHA1 }}
+ - restore_cache:
+ keys:
+ - coverage-contracts-{{ .Environment.CIRCLE_SHA1 }}
+ - restore_cache:
+ keys:
+ - coverage-0xjs-{{ .Environment.CIRCLE_SHA1 }}
+ - run: yarn report_coverage
workflows:
version: 2
main:
@@ -120,6 +143,7 @@ workflows:
- lint:
requires:
- build
-notify:
- webhooks:
- - url: https://coveralls.io/webhook?repo_token=ZYESXQbPiGidXzn2qkajycWa42uZHZsMX
+ - submit-coverage:
+ requires:
+ - test-0xjs
+ - test-contracts