This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
forked from tjoskar/ng-lazyload-image
-
Notifications
You must be signed in to change notification settings - Fork 3
/
karma.ci.js
55 lines (51 loc) · 1.56 KB
/
karma.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
const karmaDefault = require('./karma.default');
module.exports = config => {
// Browsers to run on Sauce Labs
const customLaunchers = {
'SL_Chrome': {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 10',
version: 'latest'
},
'SL_Edge': {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: 'latest'
},
'SL_FireFox': {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 10',
version: 'latest'
},
'SL_Safari': {
base: 'SauceLabs',
browserName: 'safari',
platform: 'OS X 10.11',
version: 'latest'
}
};
config.set(Object.assign({}, karmaDefault(config), {
// Webpack please don't spam the console when running in karma!
webpackServer: { noInfo: true },
reporters: ['dots', 'saucelabs'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
sauceLabs: {
testName: 'Angular lazy load images',
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
username: process.env.SAUCE_USERNAME,
accessKey: process.env.SAUCE_ACCESS_KEY,
startConnect: false
},
captureTimeout: 120000,
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
singleRun: true,
concurrency: 1,
autoWatch: false
}));
};