forked from axemclion/grunt-saucelabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.js
75 lines (74 loc) · 1.55 KB
/
grunt.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
module.exports = function(grunt) {
var _browsers = [
{
browserName: 'firefox'
},
{
browserName: 'googlechrome',
platform: 'linux'
},
{
browserName: 'firefox',
platform: 'Windows 2003',
version: '12'
},
{
browserName: 'firefox',
platform: 'Windows 2003',
version: '13'
},
{
browserName: 'firefox',
platform: 'Windows 2003',
version: '14'
},
{
browserName: 'firefox',
platform: 'Windows 2003',
version: '15'
},
{
browserName: 'internet explorer',
platform: 'Windows 2012',
version: '10'
},
{
browserName: 'opera',
version: '11'
},
{
browserName: 'opera',
version: '12'
}
];
grunt.initConfig({
lint: {
files: ['grunt.js', 'tasks/**/*.js']
},
server: {
base: 'test',
port: 9999
},
'saucelabs-qunit': {
all: {
urls: ['http://127.0.0.1:9999/qunit/lists-plugin.html', 'http://127.0.0.1:9999/qunit/twitter-plugin.html'],
tunnelTimeout: 5,
build: process.env.TRAVIS_JOB_ID,
concurrency: 3,
browsers: _browsers
}
},
'saucelabs-jasmine': {
all: {
urls: ['http://127.0.0.1:9999/jasmine/SpecRunner.html', 'http://127.0.0.1:9999/jasmine/SpecRunnerDos.html'],
tunnelTimeout: 5,
build: process.env.TRAVIS_JOB_ID,
concurrency: 3,
browsers: _browsers
}
}
});
grunt.loadTasks('tasks');
grunt.registerTask('test', 'server saucelabs-qunit saucelabs-jasmine');
grunt.registerTask('default', 'lint test');
};