forked from feathersjs/feathers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
53 lines (47 loc) · 1.2 KB
/
Gruntfile.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
const server = require('./packages/client/test/server');
module.exports = function (grunt) {
const browsers = [{
browserName: 'firefox',
platform: 'Windows 10'
}, {
browserName: 'googlechrome',
platform: 'linux'
}, {
browserName: 'safari',
platform: 'OS X 10.11',
version: '9.0'
}, {
browserName: 'internet explorer',
platform: 'Windows 8',
version: '10'
}, {
browserName: 'internet explorer',
platform: 'Windows 10',
version: '11'
}];
grunt.registerTask('server', 'Start the test server', function () {
server.on('listening', () => {
console.log('Test server listening on port 3000');
});
});
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
server: {},
'saucelabs-mocha': {
all: {
options: {
urls: [
'http://127.0.0.1:3000/packages/client/browser/index.html'
],
browsers: browsers,
build: process.env.TRAVIS_JOB_ID,
testname: 'feathers-client mocha tests',
throttled: 1
}
}
},
watch: {}
});
grunt.loadNpmTasks('grunt-saucelabs');
grunt.registerTask('default', [ 'server', 'saucelabs-mocha' ]);
};