migrate to truffle 3
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
var Ownable = artifacts.require("ownership/Ownable.sol");
|
||||||
|
var Claimable = artifacts.require("ownership/Claimable.sol");
|
||||||
|
var LimitBalance = artifacts.require("LimitBalance.sol");
|
||||||
|
var SecureTargetBounty = artifacts.require("test-helpers/SecureTargetBounty.sol");
|
||||||
|
var InsecureTargetBounty = artifacts.require("test-helpers/InsecureTargetBounty.sol");
|
||||||
|
|
||||||
module.exports = function(deployer) {
|
module.exports = function(deployer) {
|
||||||
deployer.deploy(Ownable);
|
deployer.deploy(Ownable);
|
||||||
deployer.deploy(Claimable);
|
deployer.deploy(Claimable);
|
||||||
|
|||||||
@ -8,10 +8,10 @@
|
|||||||
"babel-preset-stage-2": "^6.18.0",
|
"babel-preset-stage-2": "^6.18.0",
|
||||||
"babel-preset-stage-3": "^6.17.0",
|
"babel-preset-stage-3": "^6.17.0",
|
||||||
"ethereumjs-testrpc": "^3.0.2",
|
"ethereumjs-testrpc": "^3.0.2",
|
||||||
"truffle": "^2.1.1"
|
"truffle": "^3.1.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "truffle test",
|
"test": "scripts/test.sh",
|
||||||
"console": "truffle console",
|
"console": "truffle console",
|
||||||
"install": "scripts/install.sh"
|
"install": "scripts/install.sh"
|
||||||
},
|
},
|
||||||
|
|||||||
7
scripts/test.sh
Executable file
7
scripts/test.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
testrpc &
|
||||||
|
trpc_pid=$!
|
||||||
|
node_modules/truffle/cli.js test
|
||||||
|
kill -9 $trpc_pid
|
||||||
|
|
||||||
@ -1,6 +1,9 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rpc: {
|
networks: {
|
||||||
host: "localhost",
|
development: {
|
||||||
port: 8545
|
host: "localhost",
|
||||||
|
port: 8545,
|
||||||
|
network_id: "*"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user