This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.devicelab.js
102 lines (97 loc) · 2.23 KB
/
karma.devicelab.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
'use strict'; // eslint-disable-line
const karmaConfig = require('./karma.base.js');
karmaConfig.browserStack = {
username: process.env.BROWSER_STACK_USERNAME,
accessKey: process.env.BROWSER_STACK_ACCESS_KEY,
captureTimeout: 300,
timeout: 300,
retryLimit: 5,
};
karmaConfig.customLaunchers = {
bs_android_4_4: {
base: 'BrowserStack',
device: 'Samsung Galaxy S5',
os: 'android',
os_version: '4.4',
},
bs_android_5_0: {
base: 'BrowserStack',
device: 'Google Nexus 5',
os: 'android',
os_version: '5.0',
},
bs_android_4_3: {
base: 'BrowserStack',
device: 'Samsung Galaxy S4',
os: 'android',
os_version: '4.3',
},
bs_android_4_1: {
base: 'BrowserStack',
device: 'Samsung Galaxy S3',
os: 'android',
os_version: '4.1',
},
bs_android_4_0: {
base: 'BrowserStack',
device: 'Google Nexus',
os: 'android',
os_version: '4.0',
},
bs_ios_9_1: {
base: 'BrowserStack',
device: 'iPhone 6S Plus',
os: 'ios',
os_version: '9.1',
},
bs_ios_8_3: {
base: 'BrowserStack',
device: 'iPhone 6 Plus',
os: 'ios',
os_version: '8.3',
},
bs_ie_10: {
base: 'BrowserStack',
os: 'windows',
os_version: '7',
browser: 'ie',
browser_version: '10.0',
},
bs_ie_11: {
base: 'BrowserStack',
os: 'windows',
os_version: '8.1',
browser: 'ie',
browser_version: '11.0',
},
bs_safari_9: {
base: 'BrowserStack',
os: 'osx',
os_version: 'elcapitan',
browser: 'safari',
browser_version: '9.1',
},
bs_chrome_50: {
base: 'BrowserStack',
os: 'osx',
os_version: 'yosemite',
browser: 'chrome',
browser_version: '50',
},
bs_firefox_47: {
base: 'BrowserStack',
os: 'osx',
os_version: 'yosemite',
browser: 'firefox',
browser_version: '47',
},
};
karmaConfig.browserNoActivityTimeout = 100000;
karmaConfig.browsers = Object.keys(karmaConfig.customLaunchers);
karmaConfig.browsers = [process.env.BROWSER || 'bs_chrome_47'];
module.exports = function (config) {
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
config.logLevel = config.LOG_WARN;
config.set(karmaConfig);
};