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 v1.2.3