From 8c6070349bd7207fed21784b51189442454abbdd Mon Sep 17 00:00:00 2001 From: Kfir Hadas <sharkykh@gmail.com> Date: Tue, 18 Jul 2017 12:42:08 +0300 Subject: [PATCH] Add a Grunt exec:test task that runs the 'test' script (#3939) Fixes the missing 'ci' task. --- Gruntfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 3213221ca..44d718481 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -51,7 +51,7 @@ module.exports = function(grunt) { * Admin only tasks * ****************************************/ grunt.registerTask('publish', 'ADMIN: Create a new release tag and generate new CHANGES.md', [ - 'ci', + 'exec:test', // Run tests 'newrelease', // Pull and merge develop to master, create and push a new release 'genchanges' // Update CHANGES.md ]); @@ -216,6 +216,9 @@ module.exports = function(grunt) { 'crowdin_upload': {cmd: 'crowdin-cli-py upload sources'}, 'crowdin_download': {cmd: 'crowdin-cli-py download'}, 'babel_compile': {cmd: 'python setup.py compile_catalog'}, + + // Run tests + 'test': {cmd: 'yarn run test || npm run test'}, // Publish/Releases 'git': { -- GitLab