-
Notifications
You must be signed in to change notification settings - Fork 9
/
karma.conf-ci.js
97 lines (93 loc) · 2.29 KB
/
karma.conf-ci.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// Browsers to run on Sauce Labs
var customLaunchers = {
// IEs
SL_IE11_Win10: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11.0',
platform: 'Windows 10'
},
SL_IE11_Win7: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11.0',
platform: 'Windows 7'
},
SL_IE10_Win7: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '10.0',
platform: 'Windows 7'
},
// SL_IE9_Win7: {
// base: 'SauceLabs',
// browserName: 'internet explorer',
// version: '9.0',
// platform: 'Windows 7'
// },
// all other latest browsers
SL_Chrome_Win10: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'latest',
platform: 'Windows 10'
},
SL_Chrome_Linux: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'latest',
platform: 'Linux'
},
SL_Firefox_Win10: {
base: 'SauceLabs',
browserName: 'firefox',
version: 'latest',
platform: 'Windows 10'
},
SL_Firefox_Linux: {
base: 'SauceLabs',
browserName: 'firefox',
version: 'latest',
platform: 'Linux'
},
SL_Edge: {
base: 'SauceLabs',
browserName: 'microsoftedge',
version: 'latest',
platform: 'Windows 10'
},
SL_Safari_OSX: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'macOS 10.12',
version: '11.0'
}
};
module.exports = function(config) {
config.set({
basePath: '',
files: ['polyfill.js', 'tests/*.test.js'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
browsers: Object.keys(customLaunchers),
customLaunchers: customLaunchers,
singleRun: true,
reporters: ['dots', 'saucelabs'],
plugins: ['karma-jasmine', 'karma-sauce-launcher'],
// SauceLabs allows for 2 tunnels only, therefore some browsers will have to wait
// rather long time. Plus mobile emulators tend to require a lot of time to start up.
// 10 minutes should be more than enough to run all of them.
browserNoActivityTimeout: 600000,
captureTimeout: 600000,
sauceLabs: {
startConnect: false,
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
recordScreenshots: false,
recordVideo: false,
testName: 'CustomEvent Polyfill',
public: 'public'
},
frameworks: ['jasmine']
});
};