mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
add a quick-test grunt task that skips the hinting and jumps right to mocha
This commit is contained in:
parent
e65eba1d7b
commit
bac6b65aa3
1 changed files with 15 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
var _ = require('lodash');
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.registerTask('test', function () {
|
||||
function getTestTask() {
|
||||
var testTask = 'mocha:unit';
|
||||
|
||||
if (grunt.option('use-sauce') || process.env.TRAVIS) {
|
||||
|
@ -14,13 +13,26 @@ module.exports = function (grunt) {
|
|||
}
|
||||
}
|
||||
|
||||
return testTask;
|
||||
}
|
||||
|
||||
grunt.registerTask('test', function () {
|
||||
var tasks = [
|
||||
'jshint',
|
||||
'ruby_server',
|
||||
'maybe_start_server',
|
||||
'jade',
|
||||
'less',
|
||||
testTask
|
||||
getTestTask()
|
||||
];
|
||||
grunt.task.run(tasks);
|
||||
});
|
||||
|
||||
grunt.registerTask('quick-test', function () {
|
||||
var tasks = [
|
||||
'ruby_server',
|
||||
'maybe_start_server',
|
||||
getTestTask()
|
||||
];
|
||||
grunt.task.run(tasks);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue