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

Commit

Permalink
chore: optimize running tests locally
Browse files Browse the repository at this point in the history
  • Loading branch information
hmdhk committed Feb 3, 2017
1 parent e32db53 commit 5264ead
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,18 @@ function sequenceSucceeded (done) {
}

gulp.task('test:unit:sauce', function (done) {
runSequence(['test:launchsauceconnect'], 'test', function (err) {
var sequenceArgs = ['test', function (err) {
if (err) {
return taskFailed(err)
} else {
return sequenceSucceeded(done)
}
})
}]
var isSauce = process.env.MODE && process.env.MODE.startsWith('saucelabs')
if (isSauce) {
sequenceArgs.unshift(['test:launchsauceconnect'])
}
runSequence.apply(this, sequenceArgs)
})

gulp.task('default', taskListing)

0 comments on commit 5264ead

Please sign in to comment.