forked from vaadin/vaadin-combo-box
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwct.conf.js
29 lines (26 loc) · 955 Bytes
/
wct.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = {
plugins: {
'random-output': true
},
registerHooks: function(context) {
var crossPlatforms = [
'Windows 10/chrome@55',
'Windows 10/firefox@50'
];
var otherPlatforms = [
'OS X 10.11/[email protected]',
'OS X 10.11/[email protected]',
'Windows 10/microsoftedge@14',
'Windows 10/internet explorer@11',
'OS X 10.11/[email protected]'
];
// run SauceLabs tests for pushes, except cases when branch contains 'quick/'
if (process.env.TRAVIS_EVENT_TYPE === 'push' && process.env.TRAVIS_BRANCH.indexOf('quick/') === -1) {
// crossPlatforms are not tested here, but in Selenium WebDriver (see .travis.yml)
context.options.plugins.sauce.browsers = otherPlatforms;
// Run SauceLabs for daily builds, triggered by cron
} else if (process.env.TRAVIS_EVENT_TYPE === 'cron') {
context.options.plugins.sauce.browsers = crossPlatforms.concat(otherPlatforms);
}
}
};