@@ -234,7 +234,8 @@ module.exports = function(grunt) {
234
234
'http://127.0.0.1:9999/test/integration/index.html'
235
235
] ,
236
236
sauceConfig : {
237
- 'video-upload-on-pass' : false
237
+ 'record-video' : false ,
238
+ 'record-screenshots' : false
238
239
} ,
239
240
build : process . env . TRAVIS_BUILD_NUMBER ,
240
241
testname :
@@ -244,7 +245,9 @@ module.exports = function(grunt) {
244
245
[ 'macOS 10.12' , 'chrome' , 'latest' ] ,
245
246
[ 'macOS 10.12' , 'firefox' , 'latest' ] ,
246
247
[ 'macOS 10.12' , 'safari' , '10.0' ]
247
- ]
248
+ ] ,
249
+ public : 'public' ,
250
+ tunnelArgs : [ '--verbose' ]
248
251
}
249
252
}
250
253
} ,
@@ -408,25 +411,21 @@ module.exports = function(grunt) {
408
411
grunt . registerTask ( 'test' , 'Run tests locally or on CI server' , function ( ) {
409
412
if ( process . env . TRAVIS === 'true' ) {
410
413
grunt . log . writeln ( 'Running CI test suite' ) ;
411
- grunt . task . run ( 'test- ci' ) ;
414
+ grunt . task . run ( 'test: ci' ) ;
412
415
} else {
413
416
grunt . log . writeln ( 'Running local test suite' ) ;
414
- grunt . task . run ( 'test- local' ) ;
417
+ grunt . task . run ( 'test: local' ) ;
415
418
}
416
419
} ) ;
417
- grunt . registerTask ( 'test-ci' , [
420
+
421
+ grunt . registerTask ( 'test:pre' , [ 'eslint' , 'browserify.core' , 'browserify:test' ] ) ;
422
+ grunt . registerTask ( 'test:ci' , [
418
423
'config:ci' ,
419
- 'browserify.core' ,
420
- 'browserify:test' ,
424
+ 'test:pre' ,
421
425
'connect:ci' ,
422
426
'saucelabs-mocha'
423
427
] ) ;
424
- grunt . registerTask ( 'test-local' , [
425
- 'eslint' ,
426
- 'browserify.core' ,
427
- 'browserify:test' ,
428
- 'mocha'
429
- ] ) ;
428
+ grunt . registerTask ( 'test:local' , [ 'test:pre' , 'mocha' ] ) ;
430
429
431
430
// Webserver tasks
432
431
grunt . registerTask ( 'run:test' , [ 'connect:test' ] ) ;
0 commit comments