aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-16 23:36:21 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-17 04:11:30 +0800
commit3894311d68ff2b38287154c6dc335a36e1d0be97 (patch)
tree8041111d55b444c6b13486da51ecfd2175242a56
parent35501dd4fc9d2034356f364447dec2e26b88557b (diff)
downloaddexon-sol-tools-3894311d68ff2b38287154c6dc335a36e1d0be97.tar
dexon-sol-tools-3894311d68ff2b38287154c6dc335a36e1d0be97.tar.gz
dexon-sol-tools-3894311d68ff2b38287154c6dc335a36e1d0be97.tar.bz2
dexon-sol-tools-3894311d68ff2b38287154c6dc335a36e1d0be97.tar.lz
dexon-sol-tools-3894311d68ff2b38287154c6dc335a36e1d0be97.tar.xz
dexon-sol-tools-3894311d68ff2b38287154c6dc335a36e1d0be97.tar.zst
dexon-sol-tools-3894311d68ff2b38287154c6dc335a36e1d0be97.zip
Test deployer separately from contracts
-rw-r--r--.circleci/config.yml22
-rw-r--r--packages/contracts/package.json3
2 files changed, 21 insertions, 4 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 1795a4bfc..10c5fc886 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -52,7 +52,20 @@ jobs:
name: testrpc
command: npm run testrpc -- --db testrpc_snapshot
background: true
- - run: yarn lerna:run --scope contracts test:circleci
+ - run: yarn lerna:run --scope contracts test:circleci:contracts
+ test-deployer:
+ docker:
+ - image: circleci/node:6.12
+ working_directory: ~/repo
+ steps:
+ - restore_cache:
+ keys:
+ - repo-{{ .Environment.CIRCLE_SHA1 }}
+ - run:
+ name: testrpc
+ command: npm run testrpc -- --db testrpc_snapshot
+ background: true
+ - run: yarn lerna:run --scope contracts test:circleci:deployer
test-rest:
docker:
- image: circleci/node:6.12
@@ -95,12 +108,15 @@ workflows:
- test-contracts:
requires:
- build
- - test-rest:
+ - test-deployer:
requires:
- build
- - lint:
+ - test-rest:
requires:
- build
- prettier:
requires:
- build
+ - lint:
+ requires:
+ - build
diff --git a/packages/contracts/package.json b/packages/contracts/package.json
index a3abac517..d184410ca 100644
--- a/packages/contracts/package.json
+++ b/packages/contracts/package.json
@@ -16,7 +16,8 @@
"migrate:truffle": "npm run build; truffle migrate",
"migrate": "npm run build; node lib/deploy/cli.js migrate",
"lint": "tslint --project . 'migrations/**/*.ts' 'test/**/*.ts' 'util/**/*.ts' 'deploy/**/*.ts'",
- "test:circleci": "yarn test; yarn test:deployer",
+ "test:circleci:contracts": "yarn test",
+ "test:circleci:deployer": "yarn test:deployer",
"test:deployer": "npm run build; mocha lib/deploy/test/*_test.js"
},
"repository": {