File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,10 @@ module.exports = function(grunt) {
224224 } ) ;
225225 } ) ;
226226
227+ grunt . registerTask ( 'skip-karma-on-windows' , function ( ) {
228+ console . log ( '*** SKIPPING PHANTOM-JS BASED TESTS ON WINDOWS ***' ) ;
229+ } ) ;
230+
227231 grunt . registerTask ( 'e2e' , [ 'e2e-server' , 'karma:e2e' ] ) ;
228232
229233 // Default task.
@@ -232,7 +236,9 @@ module.exports = function(grunt) {
232236 grunt . registerTask ( 'test' , [
233237 'eslint' ,
234238 process . env . JENKINS_HOME ? 'mochaTest:unit-xml' : 'mochaTest:unit' ,
235- 'karma:unit-once' ] ) ;
239+ process . env . JENKINS_HOME && / ^ w i n / . test ( process . platform ) ?
240+ 'skip-karma-on-windows' : 'karma:unit-once' ,
241+ ] ) ;
236242
237243 // alias for sl-ci-run and `npm test`
238244 grunt . registerTask ( 'mocha-and-karma' , [ 'test' ] ) ;
You can’t perform that action at this time.
0 commit comments