Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
sudo: false
os:
- osx
- windows
language: node_js
node_js:
- 8
Expand All @@ -17,3 +19,8 @@ deploy:
on:
repo: yahoo/protractor-retry
branch: master
before_install:
- echo $PATH; echo "before install"
before_script:
- echo $PATH ;echo "before script"
- which sauce-connect
6 changes: 4 additions & 2 deletions lib/retry.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ var xml2js = require('xml2js');
var argv = require('yargs').argv;
var debug = require('debug')('ProtractorRetry');
var unique = require('array-unique');
var childProcess = require('child_process');
// var childProcess = require('child_process');
var crossSpawn = require('cross-spawn');
var Q = require('q');
var retry;

Expand Down Expand Up @@ -155,7 +156,8 @@ function spawn(command, args) {
debug('Command', command, args);
return function() {
return Q.Promise(function(resolve) {
var child = childProcess.spawn(command, args);
// var child = childProcess.spawn(command, args);
var child = crossSpawn(command, args);
child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);
child.on('close', (code) => {
Expand Down
43 changes: 43 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"yargs": "^15.4.1"
},
"devDependencies": {
"cross-spawn": "^7.0.0",
"eslint": "^6.8.0",
"eslint-config-eslint": "^6.0.0",
"eslint-plugin-jsdoc": "^15.12.2",
Expand Down