Manuel Araoz преди 8 години
родител
ревизия
a69333e2b8
променени са 4 файла, в които са добавени 21 реда и са изтрити 5 реда
  1. 6 0
      migrations/2_deploy_contracts.js
  2. 2 2
      package.json
  3. 7 0
      scripts/test.sh
  4. 6 3
      truffle.js

+ 6 - 0
migrations/2_deploy_contracts.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);

+ 2 - 2
package.json

@@ -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"
   },

+ 7 - 0
scripts/test.sh

@@ -0,0 +1,7 @@
+#! /bin/bash
+
+testrpc &
+trpc_pid=$!
+node_modules/truffle/cli.js test
+kill -9 $trpc_pid
+

+ 6 - 3
truffle.js

@@ -1,6 +1,9 @@
 module.exports = {
-  rpc: {
-    host: "localhost",
-    port: 8545
+  networks: {
+    development: {
+      host: "localhost",
+      port: 8545,
+      network_id: "*"
+    }
   }
 };