forked from contentful/contentful.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.saucelabs.js
43 lines (40 loc) · 1.08 KB
/
karma.conf.saucelabs.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
var karmaBaseConf = require('./karma.base.conf')
var browsers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Linux'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Linux'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows 10',
version: '11.103'
},
sl_edge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10'
}
}
module.exports = function (config) {
karmaBaseConf.plugins.push(require('karma-sauce-launcher'))
karmaBaseConf.reporters.push('saucelabs')
karmaBaseConf.logLevel = config.LOG_DEBUG
karmaBaseConf.customLaunchers = browsers
karmaBaseConf.concurrency = 2
karmaBaseConf.browsers = Object.keys(browsers)
karmaBaseConf.sauceLabs = {
// Should be false for running on travis, as travis already starts its own
// sauce connect
startConnect: false,
// https://github.com/karma-runner/karma-sauce-launcher/issues/73
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER
}
config.set(karmaBaseConf)
}