Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
gulpfile, minor clean up and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hmdhk committed Jul 15, 2016
1 parent 09d903a commit ac3972d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ require('gulp-release-tasks')(gulp)
var jeditor = require('gulp-json-editor')

var webdriverConfig = {
user: process.env.SAUCE_USERNAME || 'opbeat',
key: process.env.SAUCE_ACCESS_KEY || 'de42e589-1450-41a2-8a44-90aa00c15168',
host: process.env.SAUCE_HOST ||'ondemand.saucelabs.com',
port: process.env.SAUCE_PORT || 80,
baseUrl: process.env.SAUCE_BASEURL || 'http://localhost:8000'
user: process.env.SAUCE_USERNAME || 'opbeat',
key: process.env.SAUCE_ACCESS_KEY || 'de42e589-1450-41a2-8a44-90aa00c15168',
host: process.env.SAUCE_HOST || 'ondemand.saucelabs.com',
port: process.env.SAUCE_PORT || 80,
baseUrl: process.env.SAUCE_BASEURL || 'http://localhost:8000'
}

// Static file server
Expand Down Expand Up @@ -266,17 +266,17 @@ gulp.task('test:e2e:launchsauceconnect', function (done) {
logger: console.log
}

var tryConnect = function(maxAttempts, currAttempts, done) {
var tryConnect = function (maxAttempts, currAttempts, done) {
sauceConnectLauncher(config, function (err, sauceConnectProcess) {
if (err) {
console.error(err.message)
if (currAttempts <= maxAttempts) {
console.log("Retrying... (attempt " + currAttempts + " of " + maxAttempts + ")")
console.log('Retrying... (attempt ' + currAttempts + ' of ' + maxAttempts + ')')
tryConnect(maxAttempts, ++currAttempts, done)
}else{
} else {
return process.exit(1)
}
}else{
} else {
console.log('Sauce Connect ready')
done()
}
Expand Down Expand Up @@ -332,7 +332,7 @@ gulp.task('test:e2e', function (done) {
})

gulp.task('test:unit:sauce', function (done) {
runSequence('build', 'test:e2e:serve', 'test:e2e:launchsauceconnect', 'test', function () {
runSequence('build', 'test:e2e:launchsauceconnect', 'test', function () {
console.log('All tasks completed.')
done()
process.exit(0)
Expand Down

0 comments on commit ac3972d

Please sign in to comment.