aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-08-09 07:47:36 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-08-09 07:47:36 +0800
commitca7d8a8940df23e56fb034878939112bc359cb2f (patch)
tree8f4315093d7caaac4cae686760fabf9d96112840
parent762bbe9bcd79ca5b832859cc20ffa4c83603cbcb (diff)
downloaddexon-0x-contracts-ca7d8a8940df23e56fb034878939112bc359cb2f.tar.gz
dexon-0x-contracts-ca7d8a8940df23e56fb034878939112bc359cb2f.tar.zst
dexon-0x-contracts-ca7d8a8940df23e56fb034878939112bc359cb2f.zip
Update CI config and package.json to run @0xproject/utils tests on CI
-rw-r--r--.circleci/config.yml1
-rw-r--r--packages/utils/package.json6
2 files changed, 6 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index b93f62fa7..43e542a86 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -80,6 +80,7 @@ jobs:
- run: yarn wsrun test:circleci @0xproject/sra-report
- run: yarn wsrun test:circleci @0xproject/subproviders
- run: yarn wsrun test:circleci @0xproject/web3-wrapper
+ - run: yarn wsrun test:circleci @0xproject/utils
- save_cache:
key: coverage-0xjs-{{ .Environment.CIRCLE_SHA1 }}
paths:
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 46c1d05d0..ee5fc264f 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -11,7 +11,11 @@
"watch_without_deps": "tsc -w",
"build": "tsc && copyfiles -u 2 './lib/monorepo_scripts/**/*' ./scripts",
"clean": "shx rm -rf lib scripts",
- "test": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --bail --exit",
+ "test": "yarn run_mocha",
+ "test:circleci": "yarn test:coverage",
+ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --bail --exit",
+ "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
+ "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"lint": "tslint --project .",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js"
},