This repository has been archived by the owner on May 14, 2023. It is now read-only.
forked from summernote/summernote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.ci.conf.js
99 lines (98 loc) · 2.56 KB
/
karma.ci.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
var webpackConfig = require('./config/webpack.config.karma.js');
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'webpack', ],
concurrency: 3,
colors: true,
logLevel: config.LOG_INFO,
files: [
'node_modules/jquery/dist/jquery.js',
{ pattern: 'src/js/**/*.js' },
{ pattern: 'test/**/*.spec.js' }
],
customLaunchers: {
'SL_WINDOWS_IE10': {
base: 'SauceLabs',
browserName: 'Internet Explorer',
version: '10.0',
platform: 'Windows 8',
},
'SL_WINDOWS_IE11': {
base: 'SauceLabs',
browserName: 'Internet Explorer',
version: '11.0',
platform: 'Windows 10',
},
'SL_WINDOWS_EDGE': {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
version: 'latest',
platform: 'Windows 10',
},
'SL_WINDOWS_FIREFOX': {
base: 'SauceLabs',
browserName: 'Firefox',
version: 'latest',
platform: 'Windows 10',
},
'SL_WINDOWS_CHROME': {
base: 'SauceLabs',
browserName: 'Chrome',
version: 'latest',
platform: 'Windows 10',
},
'SL_LINUX_FIREFOX': {
base: 'SauceLabs',
browserName: 'Firefox',
version: 'latest',
platform: 'Linux',
},
'SL_MACOS_CHROME': {
base: 'SauceLabs',
browserName: 'Chrome',
version: 'latest',
platform: 'macOS 10.14',
},
'SL_MACOS_SAFARI': {
base: 'SauceLabs',
browserName: 'Safari',
version: 'latest',
platform: 'macOS 10.14',
},
'SL_MACOS_FIREFOX': {
base: 'SauceLabs',
browserName: 'Firefox',
version: 'latest',
platform: 'macOS 10.14',
},
},
browsers: [
'SL_WINDOWS_EDGE',
'SL_WINDOWS_CHROME',
'SL_WINDOWS_FIREFOX',
//'SL_LINUX_FIREFOX',
'SL_MACOS_CHROME',
'SL_MACOS_SAFARI',
'SL_MACOS_FIREFOX',
],
sauceLabs: {
testName: 'unit tests for summernote',
startConnect: false,
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
build: process.env.TRAVIS_BUILD_NUMBER,
tags: [process.env.TRAVIS_BRANCH, process.env.TRAVIS_PULL_REQUEST],
},
preprocessors: {
'src/js/**/*.js': ['webpack'],
'test/**/*.spec.js': ['webpack']
},
webpack: webpackConfig,
reporters: ['dots', 'coverage', 'coveralls'],
coverageReporter: {
type: 'lcov',
dir: 'coverage/',
includeAllSources: true
},
browserNoActivityTimeout: 60000,
});
};