Skip to content

Commit 55ef331

Browse files
author
Zhen
committed
Default to use 3.0-nightly for testing.
1 parent eef0e45 commit 55ef331

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

gulpfile.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,23 @@ gulp.task('set', function() {
198198

199199
var neo4jHome = path.resolve('./build/neo4j');
200200
var neorunPath = path.resolve('./neokit/neorun.py');
201+
var neorunStartArgsName = "--neorun.start.args"; // use this args to provide additional args for running neorun.start
201202

202203
gulp.task('start-neo4j', function() {
203204

204-
//var neorunArgs = minimist(process.argv.slice(2), { string: 'opts' }).opts;
205-
var neorunArgs;
206-
neorunArgs = neorunArgs || '-v 3.0.1 -p neo4j';
205+
var neorunStartArgs = '-p neo4j'; // default args to neorun.start: change the default password to neo4j
206+
process.argv.slice(2).forEach(function (val) {
207+
if(val.startsWith(neorunStartArgsName))
208+
{
209+
neorunStartArgs = val.split("=")[1];
210+
}
211+
});
212+
213+
neorunStartArgs = neorunStartArgs.match(/\S+/g) || '';
207214

208215
return runScript([
209216
neorunPath, '--start=' + neo4jHome
210-
].concat( neorunArgs.split(" ") ) );
217+
].concat( neorunStartArgs ) );
211218
});
212219

213220
gulp.task('stop-neo4j', function() {

runTests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ trap finish EXIT
77

88
npm install
99
npm run start-neo4j
10+
#npm run start-neo4j -- --neorun.start.args='-v 3.0.1 -p neo4j'
1011
sleep 2
1112
npm test

0 commit comments

Comments
 (0)