-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
42 lines (40 loc) · 990 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
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-tag');
grunt.loadNpmTasks('grunt-release');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.initConfig({
mochaTest: {
test_spec: {
options: {
reporter: 'spec'
},
src: ['test/**/*.js']
},
test_json: {
options: {
reporter: 'json',
quiet: true,
captureFile: 'reports/json/TEST-tech-http.json'
},
src: ['test/**/*.js']
}
},
release: {
options: {
npm: false, // Important to avoid pushing to npm.org
afterReleaseTasks: ['tag'],
github: {
repo: 'AirVantage/node-tech-http',
accessTokenVar: 'GITHUB_ACCESS_TOKEN'
}
}
},
tag: {
options: {
tagName: '<%= version.match(/\\d*/) %>.x'
}
}
});
grunt.registerTask('test', ['mochaTest:test_spec']);
grunt.registerTask('test-json', ['mochaTest:test_json']);
};