forked from react-bootstrap/dom-helpers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma-sauce.conf.js
103 lines (83 loc) · 1.98 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
'use strict';
module.exports = function (config) {
process.env.SAUCE_USERNAME = require('./sl.json').username;
process.env.SAUCE_ACCESS_KEY = require('./sl.json').accessKey;
var customLaunchers = {
SL_ie_8: {
base: 'SauceLabs',
browserName: 'internet explorer',
platform: 'Windows XP',
version: '8'
},
// SL_ie_9: {
// base: 'SauceLabs',
// browserName: 'internet explorer',
// platform: 'Windows 7',
// version: '9'
// },
// SL_ie_10: {
// base: 'SauceLabs',
// browserName: 'internet explorer',
// version: '10'
// },
// SL_chrome: {
// base: 'SauceLabs',
// browserName: 'chrome'
// },
// SL_firefox: {
// base: 'SauceLabs',
// browserName: 'firefox'
// },
// sl_ios_safari: {
// base: 'SauceLabs',
// browserName: 'iphone',
// platform: 'OS X 10.9',
// version: '7.1'
// },
};
config.set({
basePath: '',
frameworks: ['mocha'],
reporters: ['mocha'],
client: {
mocha: {
timeout : 20000 // 20 seconds
}
},
files: [
'vendor/es5-shim.min.js',
'vendor/es5-sham.min.js',
'vendor/sinon-1.10.3.js', //because sinon hates webpack
'test/fixtures/*.html',
'test.js'
],
port: 9876,
colors: true,
autoWatch: true,
singleRun: false,
logLevel: config.LOG_INFO,
preprocessors: {
'test/fixtures/*.html': 'html2js',
'test.js': ['webpack', 'sourcemap']
},
customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
webpack: {
devtool: 'inline-source-map',
entry: __dirname + '/test.js',
module: {
loaders: [
{
test: /.js$/,
loader: 'babel-loader',
query: require('./package.json').babel,
exclude: /node_modules/
}
]
}
},
webpackServer: {
noInfo: true
}
});
};