2014-01-04 01:29:23 +01:00
|
|
|
/* jshint globalstrict: false */
|
|
|
|
/* global module */
|
2013-11-18 21:36:21 +01:00
|
|
|
module.exports = function (grunt) {
|
2014-01-04 01:29:23 +01:00
|
|
|
'use strict';
|
2013-11-18 21:36:21 +01:00
|
|
|
|
2013-11-15 22:35:13 +01:00
|
|
|
grunt.registerTask('build', [
|
2013-11-21 11:11:11 +01:00
|
|
|
'shell:verify_kibana_status',
|
2014-01-22 10:54:24 +01:00
|
|
|
'jshint',
|
2013-11-18 21:36:21 +01:00
|
|
|
'clean:build',
|
2014-01-22 10:54:24 +01:00
|
|
|
'build:load_git_versions',
|
2013-11-15 22:35:13 +01:00
|
|
|
'shell:maven_clean',
|
|
|
|
'shell:maven_package',
|
2014-01-22 10:54:24 +01:00
|
|
|
'copy:merge_marvel_kibana',
|
2013-11-18 21:36:21 +01:00
|
|
|
'replace:dist_marvel_config',
|
|
|
|
'shell:build_kibana',
|
2014-01-04 01:29:23 +01:00
|
|
|
'build_sense',
|
2014-01-22 10:54:24 +01:00
|
|
|
'copy:artifacts_to_build',
|
|
|
|
'clean:build_tmp',
|
|
|
|
'replace:git_commits'
|
2013-11-15 22:35:13 +01:00
|
|
|
]);
|
2014-01-04 01:29:23 +01:00
|
|
|
|
|
|
|
grunt.registerTask('build_sense', [
|
|
|
|
'requirejs:build_sense',
|
|
|
|
'clean:sense_build_tests'
|
|
|
|
]);
|
2014-01-22 10:54:24 +01:00
|
|
|
|
|
|
|
grunt.registerTask('build:load_git_versions', function () {
|
|
|
|
grunt.event.once('git-describe', function (desc) {
|
|
|
|
grunt.config.set('kibanaCommit', desc.object);
|
|
|
|
grunt.event.once('git-describe', function (desc) {
|
|
|
|
grunt.config.set('marvelCommit', desc.object);
|
|
|
|
});
|
|
|
|
grunt.task.run('git-describe:marvel');
|
|
|
|
});
|
|
|
|
grunt.task.run('git-describe:kibana');
|
|
|
|
});
|
2013-11-15 22:35:13 +01:00
|
|
|
};
|