aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-26 02:11:17 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-01 01:33:56 +0800
commita773973b1bbbb660e5abd4686aa178f3d8de3382 (patch)
tree69350f0f75265f9d7958ee497bfc36011119a40e /.circleci
parenta60006366b4c4396055cd7950b0bcb211ba10607 (diff)
downloaddexon-sol-tools-a773973b1bbbb660e5abd4686aa178f3d8de3382.tar.gz
dexon-sol-tools-a773973b1bbbb660e5abd4686aa178f3d8de3382.tar.zst
dexon-sol-tools-a773973b1bbbb660e5abd4686aa178f3d8de3382.zip
Split tests into two buckets
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml48
1 files changed, 23 insertions, 25 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 6fdbfe17f..9594c892b 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -31,7 +31,7 @@ jobs:
key: repo-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/repo
- test-contract-wrappers:
+ test-1:
docker:
- image: circleci/node:6.12
working_directory: ~/repo
@@ -40,10 +40,15 @@ jobs:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- run: yarn wsrun test:circleci @0xproject/contract-wrappers
+ - run: yarn wsrun test:circleci @0xproject/sol-compiler
- save_cache:
key: coverage-contract-wrappers-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/repo/packages/contract-wrappers/coverage/lcov.info
+ - save_cache:
+ key: coverage-sol-compiler-{{ .Environment.CIRCLE_SHA1 }}
+ paths:
+ - ~/repo/packages/sol-compiler/coverage/lcov.info
test-contracts:
docker:
- image: circleci/node:6.12
@@ -53,7 +58,7 @@ jobs:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- run: yarn wsrun test:circleci contracts
- test-sol-compiler:
+ test-2:
docker:
- image: circleci/node:6.12
working_directory: ~/repo
@@ -61,20 +66,13 @@ jobs:
- restore_cache:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- - run: yarn wsrun test:circleci @0xproject/sol-compiler
- - save_cache:
- key: coverage-sol-compiler-{{ .Environment.CIRCLE_SHA1 }}
- paths:
- - ~/repo/packages/sol-compiler/coverage/lcov.info
- test-rest:
- docker:
- - image: circleci/node:6.12
- working_directory: ~/repo
- steps:
- - restore_cache:
- keys:
- - repo-{{ .Environment.CIRCLE_SHA1 }}
- - run: yarn wsrun test:circleci --exclude contracts --exclude @0xproject/contract-wrappers --exclude @0xproject/sol-compiler --stages --exclude-missing
+ - run: yarn wsrun test:circleci @0xproject/assert
+ - run: yarn wsrun test:circleci @0xproject/connect
+ - run: yarn wsrun test:circleci @0xproject/dev-utils
+ - run: yarn wsrun test:circleci @0xproject/json-schemas
+ - run: yarn wsrun test:circleci @0xproject/subproviders
+ - run: yarn wsrun test:circleci @0xproject/sol-cov
+ - run: yarn wsrun test:circleci @0xproject/metacoin
- save_cache:
key: coverage-assert-{{ .Environment.CIRCLE_SHA1 }}
paths:
@@ -144,6 +142,9 @@ jobs:
- coverage-sol-cov-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
keys:
+ - coverage-contracts-{{ .Environment.CIRCLE_SHA1 }}
+ - restore_cache:
+ keys:
- coverage-sol-compiler-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
keys:
@@ -157,16 +158,13 @@ workflows:
main:
jobs:
- build
- - test-contract-wrappers:
+ - test-1:
requires:
- build
- - test-contracts:
+ - test-2:
requires:
- build
- - test-sol-compiler:
- requires:
- - build
- - test-rest:
+ - test-contracts:
requires:
- build
- static-tests:
@@ -174,6 +172,6 @@ workflows:
- build
- submit-coverage:
requires:
- - test-contract-wrappers
- - test-sol-compiler
- - test-rest
+ - test-contracts
+ - test-1
+ - test-2