forked from mazko/jsjavaparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
39 lines (32 loc) · 909 Bytes
/
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
// Travis CI task.
module.exports = function(grunt) {
grunt.initConfig({
qunit: {
all : {
options: {
timeout: 500000,
urls: [
"./test/coverage.html?coverage=true"
]
}
}
},
coveralls: {
options: {
force: true
},
all: {
src: './.coverage-results/core.lcov',
}
}
});
grunt.event.on('qunit.report', function(data) {
// visualize results local: genhtml .coverage-results/core.lcov
grunt.file.write('./.coverage-results/core.lcov', data);
});
// Load plugin
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-coveralls');
// Task to run tests
grunt.registerTask('travis', ['qunit']);
}