From 6ee4e954f67f45afabf85dbc243ccaa7eb743f3a Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 24 May 2018 18:54:23 -0700 Subject: Rebalance tests --- .circleci/config.yml | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) (limited to '.circleci') 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: @@ -156,6 +138,9 @@ jobs: - restore_cache: keys: - coverage-connect-{{ .Environment.CIRCLE_SHA1 }} + - restore_cache: + keys: + - coverage-contract-wrappers-{{ .Environment.CIRCLE_SHA1 }} - restore_cache: keys: - coverage-dev-utils-{{ .Environment.CIRCLE_SHA1 }} @@ -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 -- cgit v1.2.3