From 739c7d36edb1219b45d7f26acd76ccb73a5781c5 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Fri, 4 Dec 2015 17:45:32 +0000 Subject: [PATCH] Streamline when grunt init is called in tests - test-server only needs submodules to be updated --- Gruntfile.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ebc940685a..c43b499b3e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -591,9 +591,9 @@ var _ = require('lodash'), // `grunt validate` is called by `npm test` and is used by Travis. grunt.registerTask('validate', 'Run tests and lint code', function () { if (process.env.TEST_SUITE === 'server') { - grunt.task.run(['test-server']); + grunt.task.run(['init', 'test-server']); } else if (process.env.TEST_SUITE === 'client') { - grunt.task.run(['test-client']); + grunt.task.run(['init', 'test-client']); } else if (process.env.TEST_SUITE === 'lint') { grunt.task.run(['shell:ember:init', 'shell:bower', 'lint']); } else { @@ -613,13 +613,13 @@ var _ = require('lodash'), // details of each of the test suites. // grunt.registerTask('test-all', 'Run tests for both server and client', - ['init', 'test-server', 'test-client']); + ['test-server', 'test-client']); grunt.registerTask('test-server', 'Run server tests', - ['init', 'test-routes', 'test-module', 'test-unit', 'test-integration']); + ['test-routes', 'test-module', 'test-unit', 'test-integration']); grunt.registerTask('test-client', 'Run client tests', - ['init', 'test-ember']); + ['test-ember']); // ### Lint //