forked from tidev/titanium-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
43 lines (39 loc) · 940 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
40
41
42
43
'use strict';
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
appcJs: {
src: [
'Gruntfile.js',
'bin/*',
'lib/**/*.js',
'tests/**/test-*.js',
'!tests/resources/hooks/errorhook.js',
'!tests/resources/commands/badcommand.js'
]
},
mocha_istanbul: {
options: {
timeout: 30000,
reporter: 'mocha-jenkins-reporter',
ignoreLeaks: false,
globals: [ 'Hyperloop', 'HyperloopObject' ],
reportFormats: [ 'lcov', 'cobertura' ],
check: {
statements: 61,
branches: 50,
functions: 48,
lines: 62
}
},
src: [ 'tests/**/test-*.js' ]
},
});
// Load grunt plugins for modules
grunt.loadNpmTasks('grunt-mocha-istanbul');
grunt.loadNpmTasks('grunt-appc-js');
// register tasks
grunt.registerTask('lint', [ 'appcJs' ]);
grunt.registerTask('test', [ 'mocha_istanbul' ]);
grunt.registerTask('default', [ 'lint', 'test' ]);
};