Skip to content

Commit

Permalink
[Travis-CI] still trying to debug on Travis ... #8 😢
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jun 15, 2016
1 parent 4f10cad commit e710c98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions bin/selenium_child_process.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const selenium = require('selenium-download');
const execSync = require('child_process').execSync;

console.log(' - - - - - - - - - - - - - - - - - -> process.env:', process.env);

selenium.ensure('./bin', function(error) {
if (error) {
throw new Error(error);
Expand All @@ -12,14 +10,9 @@ selenium.ensure('./bin', function(error) {
});

function start () {
require('daemon')();
// var cmd = ;
execSync('nohup java -jar ./bin/selenium.jar &');
console.log('Starting Selenium ...');
var seconds = 5;
while (new Date().getTime() <= (new Date().getTime() + (seconds * 1000))) {
; // do nothing but wait...
}
console.log('done');
return;
require('daemon')();
execSync('java -jar ./bin/selenium.jar');
}

console.log(' - - - - - - - - - - - - - - - - - -> process.env:', process.env);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"selenium-start":"node bin/webdriver-manager-start.js",
"selenium-close": "node bin/selenium_kill_process.js",
"nightwatch": "./node_modules/.bin/nightwatch",
"test": "npm run selenium-start && npm run nightwatch && npm run selenium-close"
"test": "npm run selenium-download && npm run nightwatch && npm run selenium-close"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit e710c98

Please sign in to comment.