Simplified some release code in Gruntfile

no issue
This commit is contained in:
Daniel Lockyer 2020-03-31 16:19:16 +01:00
parent 573850ddd7
commit 5ef8e0241f
1 changed files with 8 additions and 6 deletions

View File

@ -608,14 +608,16 @@ const configureGrunt = function (grunt) {
dest: 'core/server/web/admin/views/default.html'
}]
});
if (!grunt.option('skip-tests')) {
grunt.task.run(['update_submodules:pinned', 'subgrunt:init', 'test-all', 'clean:built', 'clean:tmp', 'prod', 'clean:release', 'copy:admin_html', 'copy:release', 'compress:release']);
grunt.task.run(['update_submodules:pinned', 'subgrunt:init']);
if (grunt.option('skip-tests')) {
grunt.log.writeln(chalk.red(chalk.bold('Skipping tests...')));
} else {
grunt.log.writeln(chalk.red(
chalk.bold('Skipping tests...')
));
grunt.task.run(['update_submodules:pinned', 'subgrunt:init', 'clean:built', 'clean:tmp', 'prod', 'clean:release', 'copy:admin_html', 'copy:release', 'compress:release']);
grunt.task.run('test-all');
}
grunt.task.run(['clean:built', 'clean:tmp', 'prod', 'clean:release', 'copy:admin_html', 'copy:release', 'compress:release']);
}
);
};