-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Update zuul config to speed up tests (#76)
- Loading branch information
1 parent
77975d0
commit 339d367
Showing
5 changed files
with
35 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
'use strict'; | ||
|
||
var browsers = require('socket.io-browsers'); | ||
|
||
var zuulConfig = module.exports = { | ||
ui: 'mocha-bdd', | ||
|
||
// test on localhost by default | ||
local: true, | ||
|
||
concurrency: 2, // ngrok only accepts two tunnels by default | ||
// if browser does not sends output in 120s since last output: | ||
// stop testing, something is wrong | ||
browser_output_timeout: 120 * 1000, | ||
browser_open_timeout: 60 * 4 * 1000, | ||
// we want to be notified something is wrong asap, so no retry | ||
browser_retries: 1, | ||
}; | ||
|
||
if (process.env.CI === 'true') { | ||
zuulConfig.local = false; | ||
zuulConfig.tunnel = { | ||
type: 'ngrok', | ||
bind_tls: true | ||
}; | ||
} | ||
|
||
var isPullRequest = process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false'; | ||
zuulConfig.browsers = isPullRequest ? browsers.pullRequest : browsers.all; |