aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--circle.yml8
-rw-r--r--package.json2
2 files changed, 6 insertions, 4 deletions
diff --git a/circle.yml b/circle.yml
index 7bb33efed..d56ff21bb 100644
--- a/circle.yml
+++ b/circle.yml
@@ -1,13 +1,15 @@
machine:
node:
version: 6.1.0
+ environment:
+ CONTRACTS_COMMIT_HASH: cd04d7c
test:
override:
- - npm run testrpc:
+ - wget https://s3.amazonaws.com/testrpc-shapshots/${CONTRACTS_COMMIT_HASH}.zip
+ - unzip ${CONTRACTS_COMMIT_HASH}.zip -d testrpc_snapshot
+ - npm run testrpc -- --db testrpc_snapshot:
background: true
- - git clone git@github.com:0xProject/contracts.git ../contracts
- - cd ../contracts; git checkout cd04d7c; npm install && npm run migrate
- npm run test:coverage
- npm run report_test_coverage
- npm run test:umd
diff --git a/package.json b/package.json
index 4f9c6f3ae..4ff17c2d9 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
"scripts": {
"prebuild": "npm run clean",
"build": "run-p build:*:prod",
- "prepublish": "run-p build:umd:prod build:commonjs:dev",
+ "prepublishOnly": "run-p build:umd:prod build:commonjs:dev",
"postpublish": "run-s release docs:json upload_docs_json",
"release": "publish-release --assets _bundles/index.js,_bundles/index.min.js",
"upload_docs_json": "aws s3 cp docs/index.json s3://0xjs-docs-jsons/$(git describe --tags).json --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type aplication/json",