-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
41 lines (38 loc) · 1.19 KB
/
truffle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require('babel-register')({
ignore: /node_modules\/(?!openzeppelin-solidity)/
});
require('babel-polyfill');
const localopts = require('./localopts.js');
// -------------------------------------------------------------------
// Emulate mocha --grep option to run only matching tests
let mochaConf = {}; // Passed as module.exports.mocha
// -------------------------------------------------------------------
for (let i = 0; i < process.argv.length; i++) {
const arg = process.argv[i];
if (arg != '-g' && arg != "--grep" ) continue;
if (++i >= process.argv.length) {
console.error(arg + " option requires argument");
process.exit(1);
};
mochaConf.grep = new RegExp(process.argv[i]);
break;
}
// -------------------------------------------------------------------
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: "127.0.0.1",
port: 9545,
network_id: "*" // match any network
},
rinkeby: {
host: "localhost", // Connect to geth on the specified
port: 8545,
from: localopts.rinkeby.etheraddress,
network_id: 4,
gas: 4612388, // Gas limit used for deploys
}
},
};