forked from kaltura/liveDVR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
27 lines (20 loc) · 853 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
/**
* Created by elad.benedict on 8/12/2015.
*/
var match = require('matchdep');
module.exports = function (grunt) {
'use strict';
process.env['MOCHA_FILE'] = './reports/junit_test_report.xml';
process.env['PROPERTIES'] = `BUILD_ID:${process.env.BUILD_NUMBER}`;
var userConfig = require('./grunt-config.js');
grunt.file.expand('./node_modules/grunt-*/tasks').forEach(grunt.loadTasks);
grunt.initConfig(userConfig);
if (process.env.UNIT_TEST_PATH) {
console.log(`UNIT_TEST_PATH=${process.env.UNIT_TEST_PATH}`);
userConfig.unit_tests = process.env.UNIT_TEST_PATH;
}
grunt.loadTasks('./lib/grunt/tasks');
grunt.loadTasks('./lib/grunt/config');
// Default task(s).
grunt.registerTask('default', ['jshint:dev', 'unit-test:dev', 'component-test:dev', 'mocha_istanbul:dev']);
};