From ea2dbaabeb208497b6deb77521900e6178c67676 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 4 Jul 2017 16:22:21 -0700 Subject: Use testrpc snapshots in tests --- circle.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/circle.yml b/circle.yml index 7bb33efed..3db83209d 100644 --- a/circle.yml +++ b/circle.yml @@ -1,13 +1,15 @@ machine: node: version: 6.1.0 + environment: + CONTRACTS_COMMIT: cd04d7c test: override: - - npm run testrpc: + - wget https://s3.amazonaws.com/testrpc-shapshots/${CONTRACTS_COMMIT}.zip + - unzip ${CONTRACTS_COMMIT}.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 -- cgit From 33494c22064cb880b7386c4f28cd5dafa2b9c417 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 4 Jul 2017 16:38:57 -0700 Subject: Change prepublish to prepublishOnly --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- cgit From db53c5a41f0792d08e235e59de00418ed70c9441 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Tue, 4 Jul 2017 17:43:30 -0700 Subject: Rename CONTRACTS_COMMIT to CONTRACTS_COMMIT_HASH --- circle.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/circle.yml b/circle.yml index 3db83209d..d56ff21bb 100644 --- a/circle.yml +++ b/circle.yml @@ -2,12 +2,12 @@ machine: node: version: 6.1.0 environment: - CONTRACTS_COMMIT: cd04d7c + CONTRACTS_COMMIT_HASH: cd04d7c test: override: - - wget https://s3.amazonaws.com/testrpc-shapshots/${CONTRACTS_COMMIT}.zip - - unzip ${CONTRACTS_COMMIT}.zip -d testrpc_snapshot + - 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 - npm run test:coverage -- cgit