-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.sauce.conf.js
83 lines (74 loc) · 1.71 KB
/
karma.sauce.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
71
72
73
74
75
76
77
78
79
80
81
82
83
// This conf file was heavily based on vue's:
// https://github.com/vuejs/vue/blob/dev/build/karma.sauce.config.js
var baseConf = require('./karma.base.conf')
var batches = [
// the cool kids
{
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 7'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox'
},
sl_mac_safari: {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.10'
}
},
// ie family
{
// sl_ie_9: {
// base: 'SauceLabs',
// browserName: 'internet explorer',
// platform: 'Windows 7',
// version: '9'
// },
sl_ie_10: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8',
version: '10'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 8.1',
version: '11'
}
},
// mobile
{
sl_ios_safari: {
base: 'SauceLabs',
browserName: 'iphone',
platform: 'OS X 10.9',
version: '7.1'
},
sl_android: {
base: 'SauceLabs',
browserName: 'android',
platform: 'Linux',
version: '4.2'
}
}
]
module.exports = function (config) {
var customLaunchers = batches[process.argv[4] || 0]
config.set(Object.assign(baseConf(config), {
sauceLabs: {
testName: 'jQuery View Unit Tests',
build: process.env.TRAVIS_BUILD_ID || 'jv-tests'
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
singleRun: true,
reporters: ['dots', 'saucelabs'],
// mobile emulators are really slow
captureTimeout: 300000,
browserNoActivityTimeout: 300000
}))
}