forked from jkroso/prefix
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.js
35 lines (32 loc) · 1.07 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
server: {
options: {
base: "",
port: 9999
}
}
},
'saucelabs-mocha': {
all: {
options: {
username: 'vendor-prefix',
key: process.env.SAUCE_ACCESS_KEY || '',
urls: ["http://localhost:9999/test/index.html"],
tunnelTimeout: 5,
build: (new Date()).getTime(),
concurrency: 3,
browsers: grunt.file.readJSON('browsers.json').browsers,
testname: "vendor-prefix tests",
tags: ["master"]
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-connect");
grunt.loadNpmTasks("grunt-saucelabs");
grunt.registerTask("test-sauce", ["connect", "saucelabs-mocha"]);
grunt.registerTask('default', ['test-sauce']);
};