Skip to content

Commit

Permalink
Bundle the truffle compile and token contracts provisioning for solcover
Browse files Browse the repository at this point in the history
  • Loading branch information
elenadimitrova committed Dec 21, 2018
1 parent 4899002 commit b5a4d05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .solcover.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ module.exports = {
skipFiles: [
'Migrations.sol',
'EtherRouter.sol',
'ERC20ExtendedToken.sol',
'PatriciaTree'
'PatriciaTree',
'ERC20ExtendedToken.sol'
],
compileCommand: '../node_modules/.bin/truffle compile',
testCommand: '../node_modules/.bin/truffle test --network coverage',
compileCommand: 'yarn run provision:token:contracts:compile',
testCommand: '../node_modules/.bin/truffle test --network coverage --compile-all',
testrpcOptions: `--port 8555 -i 1999 --acctKeys="./coverageEnv/ganache-accounts.json" --noVMErrorsOnRPCResponse --accounts 12`
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"clean:test:contracts": "rimraf ./contracts/*Updated*.*",
"clean:contracts": "rimraf ./build/contracts/*",
"provision:token:contracts": "bash ./scripts/provision-token-contracts.sh",
"provision:token:contracts:compile": "truffle compile && bash ./scripts/provision-token-contracts.sh",
"start:blockchain:client": "bash ./scripts/start-blockchain-client.sh",
"stop:blockchain:client": "bash ./scripts/stop-blockchain-client.sh",
"test:contracts": "npm run start:blockchain:client & truffle migrate --reset --compile-all && truffle test --network development",
Expand Down

0 comments on commit b5a4d05

Please sign in to comment.