forked from angular/zone.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sauce-evergreen.conf.js
70 lines (58 loc) · 1.8 KB
/
sauce-evergreen.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Sauce configuration
module.exports = function(config, ignoredLaunchers) {
// The WS server is not available with Sauce
config.files.unshift('test/saucelabs.js');
var basicLaunchers = {
'SL_CHROME': {base: 'SauceLabs', browserName: 'chrome', version: '72'},
'SL_CHROME_60': {base: 'SauceLabs', browserName: 'chrome', version: '60'},
'SL_ANDROID8.0': {
base: 'SauceLabs',
browserName: 'Chrome',
appiumVersion: '1.9.1',
platformName: 'Android',
deviceName: 'Android GoogleAPI Emulator',
platformVersion: '8.0'
}
};
var customLaunchers = {};
if (!ignoredLaunchers) {
customLaunchers = basicLaunchers;
} else {
Object.keys(basicLaunchers).forEach(function(key) {
if (ignoredLaunchers
.filter(function(ignore) {
return ignore === key;
})
.length === 0) {
customLaunchers[key] = basicLaunchers[key];
}
});
}
config.set({
captureTimeout: 120000,
browserNoActivityTimeout: 240000,
sauceLabs: {
testName: 'Zone.js',
startConnect: false,
recordVideo: false,
recordScreenshots: false,
options: {
'selenium-version': '3.4.0',
'command-timeout': 600,
'idle-timeout': 600,
'max-duration': 5400
}
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
reporters: ['dots', 'saucelabs'],
singleRun: true,
plugins: ['karma-*']
});
if (process.env.TRAVIS) {
config.sauceLabs.build =
'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')';
config.sauceLabs.tunnelIdentifier = process.env.TRAVIS_JOB_NUMBER;
process.env.SAUCE_ACCESS_KEY = process.env.SAUCE_ACCESS_KEY.split('').reverse().join('');
}
};