forked from stacktracejs/stacktrace.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.ci.js
158 lines (156 loc) · 4.55 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
module.exports = function (config) {
'use strict';
if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
console.log('Make sure the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are set.');
process.exit(1);
}
// Commented some of these out just so CI doesn't take forever.
// Check out https://saucelabs.com/platforms for all browser/platform combos
var customLaunchers = {
slIOS8: {
base: 'SauceLabs',
browserName: 'iPhone',
platform: 'OS X 10.10',
version: '8.4'
},
slIOS9: {
base: 'SauceLabs',
browserName: 'iPhone',
platform: 'OS X 10.11',
version: '9.1'
},
slAndroid4: {
base: 'SauceLabs',
browserName: 'Android',
platform: 'Linux',
version: '4.4'
},
slAndroid5: {
base: 'SauceLabs',
browserName: 'Android',
platform: 'Linux',
version: '5.1'
},
slChrome: {
base: 'SauceLabs',
browserName: 'chrome'
},
slChromeBeta: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'beta'
},
slChromeCanary: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'dev'
},
slFirefox42: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 8.1',
version: '43.0'
},
slFirefoxDev: {
base: 'SauceLabs',
browserName: 'firefox',
version: 'dev'
},
slSafari8: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.10',
version: '8'
},
slSafari9: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.11',
version: '9'
},
slOpera: {
base: 'SauceLabs',
browserName: 'opera'
},
slEdge20: {
base: 'SauceLabs',
browserName: 'microsoftedge',
platform: 'Windows 10',
version: '20.10240'
},
slIE11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
version: '11'
},
slIE10: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8',
version: '10'
},
slIE9: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 7',
version: '9'
}
// Commented out due to lack of polyfills for SourceMapConsumer
//slIE8: {
// base: 'SauceLabs',
// browserName: 'internet explorer',
// platform: 'Windows XP',
// version: '8'
//},
//slIE7: {
// base: 'SauceLabs',
// browserName: 'internet explorer',
// platform: 'Windows XP',
// version: '7'
//}
};
config.set({
basePath: '',
frameworks: ['jasmine-ajax', 'jasmine'],
files: [
'node_modules/es6-promise/dist/es6-promise.js',
'polyfills.js',
'node_modules/stacktrace-gps/dist/stacktrace-gps.min.js',
'node_modules/error-stack-parser/dist/error-stack-parser.js',
'node_modules/stack-generator/dist/stack-generator.js',
'stacktrace.js',
'spec/fixtures/*.js',
'spec/spec-helper.js',
'spec/*-spec.js'
],
exclude: [],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browserDisconnectTimeout : 10000,
browserDisconnectTolerance : 1,
browserNoActivityTimeout : 240000,
captureTimeout : 240000,
sauceLabs: {
testName: 'stacktrace.js unit tests',
recordScreenshots: false,
connectOptions: {
port: 5757,
logfile: 'sauce_connect.log'
}
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
reporters: ['progress', 'saucelabs', 'coverage'],
preprocessors: {
'stacktrace.js': 'coverage'
},
coverageReporter: {
type: 'lcov',
dir: 'coverage'
},
singleRun: true
});
};