velocity-ci
Advanced tools
Comparing version 0.0.4 to 0.1.0
{ | ||
"name": "velocity-ci", | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"description": "Commnad line runner until we can use `meteor test`", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -77,2 +77,9 @@ #!/usr/bin/env node | ||
ddpclient.subscribe( | ||
'VelocityMirrors', | ||
[], | ||
function () { | ||
} | ||
); | ||
ddpclient.on('message', function (rawMsg) { | ||
@@ -93,2 +100,6 @@ var msg = JSON.parse(rawMsg); | ||
if (msg.msg == "added" && msg.collection =="velocityMirrors"){ | ||
visitMirror(msg.fields.rootUrl); | ||
} | ||
//exit a few seconds after receiving aggregate results | ||
@@ -132,7 +143,2 @@ if ((msg.msg == "added" || msg.msg == "changed") && msg.collection == "velocityAggregateReports"){ | ||
setTimeout(function(){ | ||
visitMirror('http://localhost:5000'); | ||
}, 10000); | ||
function visitMirror(mirrorUrl){ | ||
@@ -139,0 +145,0 @@ var binPath = phantomjs.path |
7968
196