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

Commit

Permalink
Better chance to connecto saucelabs.
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 ca7be48 commit e12e807
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ addons:
sauce_connect: true

before_script:
- sh -e cd e2e_tests; npm install
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
10 changes: 8 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,14 @@ gulp.task('test', function (done) {
})

gulp.task('test:e2e', function (done) {
var stream = gulp.src('wdio.conf.js').pipe(webdriver())
stream.on('error', function () { })
var stream = gulp.src('wdio.conf.js').pipe(webdriver({
host: 'ondemand.saucelabs.com',
port: 80
}))

stream.on('error', function () {
return process.exit(1)
})
done()
})

Expand Down
3 changes: 2 additions & 1 deletion wdio.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ exports.config = {
// },
{
maxInstances: 1,
browserName: 'chrome'
browserName: 'chrome',
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
}
// {
// maxInstances: 1,
Expand Down

0 comments on commit e12e807

Please sign in to comment.