aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-25 09:54:23 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-01 01:32:43 +0800
commit6ee4e954f67f45afabf85dbc243ccaa7eb743f3a (patch)
treefaf2c97ebd8b3dd6882e9f073c0a87f0405c39d0 /.circleci
parentae47da3801634a17eb25e658272f60528cc06ead (diff)
downloaddexon-0x-contracts-6ee4e954f67f45afabf85dbc243ccaa7eb743f3a.tar.gz
dexon-0x-contracts-6ee4e954f67f45afabf85dbc243ccaa7eb743f3a.tar.zst
dexon-0x-contracts-6ee4e954f67f45afabf85dbc243ccaa7eb743f3a.zip
Rebalance tests
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml35
1 files changed, 10 insertions, 25 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index ab42ade09..e584f110d 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -19,8 +19,6 @@ jobs:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- - run: wget https://s3.amazonaws.com/testrpc-shapshots/${CONTRACTS_COMMIT_HASH}.zip
- - run: unzip ${CONTRACTS_COMMIT_HASH}.zip -d testrpc_snapshot
- run: node ./node_modules/lerna/bin/lerna.js bootstrap
- run: yarn build
- save_cache:
@@ -36,7 +34,7 @@ jobs:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- run: yarn test:installation
- test-0xjs:
+ test-contract-wrappers:
docker:
- image: circleci/node:6.12
working_directory: ~/repo
@@ -44,15 +42,11 @@ jobs:
- restore_cache:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- - run:
- name: testrpc
- command: npm run testrpc -- --db testrpc_snapshot
- background: true
- - run: yarn wsrun test:circleci 0x.js
+ - run: yarn wsrun test:circleci @0xproject/contract-wrappers
- save_cache:
- key: coverage-0xjs-{{ .Environment.CIRCLE_SHA1 }}
+ key: coverage-contract-wrappers-{{ .Environment.CIRCLE_SHA1 }}
paths:
- - ~/repo/packages/0x.js/coverage/lcov.info
+ - ~/repo/packages/contract-wrappers/coverage/lcov.info
test-contracts:
docker:
- image: circleci/node:6.12
@@ -61,10 +55,6 @@ jobs:
- restore_cache:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- - run:
- name: testrpc
- command: npm run testrpc -- --db testrpc_snapshot
- background: true
- run: yarn wsrun test:circleci contracts
test-sol-compiler:
docker:
@@ -74,10 +64,6 @@ jobs:
- restore_cache:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- - run:
- name: testrpc
- command: npm run testrpc -- --db testrpc_snapshot
- background: true
- run: yarn wsrun test:circleci @0xproject/sol-compiler
- save_cache:
key: coverage-sol-compiler-{{ .Environment.CIRCLE_SHA1 }}
@@ -91,11 +77,7 @@ jobs:
- restore_cache:
keys:
- repo-{{ .Environment.CIRCLE_SHA1 }}
- - run:
- name: testrpc
- command: npm run testrpc -- --db testrpc_snapshot
- background: true
- - run: yarn wsrun test:circleci --exclude contracts --exclude 0x.js --exclude @0xproject/sol-compiler --stages --exclude-missing
+ - run: yarn wsrun test:circleci --exclude contracts --exclude @0xproject/contract-wrappers --exclude @0xproject/sol-compiler --stages --exclude-missing
- save_cache:
key: coverage-assert-{{ .Environment.CIRCLE_SHA1 }}
paths:
@@ -158,6 +140,9 @@ jobs:
- coverage-connect-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
keys:
+ - coverage-contract-wrappers-{{ .Environment.CIRCLE_SHA1 }}
+ - restore_cache:
+ keys:
- coverage-dev-utils-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
keys:
@@ -186,7 +171,7 @@ workflows:
# - test-installation:
# requires:
# - build
- - test-0xjs:
+ - test-contract-wrappers:
requires:
- build
- test-contracts:
@@ -206,6 +191,6 @@ workflows:
- build
- submit-coverage:
requires:
- - test-0xjs
+ - test-contract-wrappers
- test-sol-compiler
- test-rest