Add circle.yml and move testrpc command to top-level repo

This commit is contained in:
Fabio Berger
2017-11-13 10:56:22 -05:00
parent c4ee2d7386
commit e6482554f5
4 changed files with 791 additions and 29 deletions

23
circle.yml Normal file
View File

@@ -0,0 +1,23 @@
machine:
node:
version: 6.5.0
environment:
CONTRACTS_COMMIT_HASH: '78fe8dd'
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
- 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
- lerna run test:coverage
- lerna run report_test_coverage
- if [ $CIRCLE_BRANCH = "master" ]; then lerna run test:umd; fi
- lerna run lint

View File

@@ -3,5 +3,14 @@
"name": "0x.js",
"workspaces": [
"packages/*"
]
],
"scripts": {
"testrpc": "testrpc -p 8545 --networkId 50 -m \"${npm_package_config_mnemonic}\"",
},
"config": {
"mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic"
},
"devDependencies": {
"lerna": "^2.5.1"
}
}

View File

@@ -24,7 +24,6 @@
"test:coverage": "nyc npm run test --all",
"report_test_coverage": "nyc report --reporter=text-lcov | coveralls",
"update_contracts": "for i in ${npm_package_config_artifacts}; do copyfiles -u 4 ../contracts/build/contracts/$i.json ../0x.js/src/artifacts; done;",
"testrpc": "testrpc -p 8545 --networkId 50 -m \"${npm_package_config_mnemonic}\"",
"docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json docs/index.json .",
"docs:generate": "typedoc --out docs .",
"docs:open": "opn docs/index.html",
@@ -40,7 +39,6 @@
},
"config": {
"artifacts": "TokenTransferProxy Exchange TokenRegistry Token EtherToken",
"mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic"
},
"repository": {
"type": "git",

784
yarn.lock

File diff suppressed because it is too large Load Diff