migrate to truffle 3

pull/146/head
Manuel Araoz 8 years ago
parent 60b48b0235
commit a69333e2b8
  1. 6
      migrations/2_deploy_contracts.js
  2. 4
      package.json
  3. 7
      scripts/test.sh
  4. 7
      truffle.js

@ -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) {
deployer.deploy(Ownable);
deployer.deploy(Claimable);

@ -8,10 +8,10 @@
"babel-preset-stage-2": "^6.18.0",
"babel-preset-stage-3": "^6.17.0",
"ethereumjs-testrpc": "^3.0.2",
"truffle": "^2.1.1"
"truffle": "^3.1.1"
},
"scripts": {
"test": "truffle test",
"test": "scripts/test.sh",
"console": "truffle console",
"install": "scripts/install.sh"
},

@ -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 = {
rpc: {
networks: {
development: {
host: "localhost",
port: 8545
port: 8545,
network_id: "*"
}
}
};

Loading…
Cancel
Save