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

Commit

Permalink
Created special task for E2E on travis-provided sauce connect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Jones authored and hmdhk committed Jul 5, 2016
1 parent dc33d00 commit d472c70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ gulp.task('test:e2e:start', function (done) {
});
})

gulp.task('test:e2e:start-travis', function (done) {
runSequence('build', 'test:e2e:serve', 'test:e2e:sauceconnect', function () {
console.log('All tasks completed.')
done()
process.exit(0)
});
})

gulp.task('watch:e2e', ['e2e-serve', 'selenium-start'], function (done) {
gulp.watch(['e2e_test/**'], function () {
runSequence('test:e2e')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"main": "src/opbeat.js",
"scripts": {
"build": "gulp build:release",
"test": "node node_modules/standard/bin/cmd.js src/**/* && gulp test && gulp test:e2e:start",
"test": "node node_modules/standard/bin/cmd.js src/**/* && gulp test && gulp test:e2e:start-travis",
"prepublish": "npm run build"
},
"files": [
Expand Down

0 comments on commit d472c70

Please sign in to comment.