@@ -6,11 +6,10 @@ var build = (function(){
6
6
// travis testing
7
7
if ( process . env && process . env . BUILD ) return process . env . BUILD == 'default' ? 'all' : 'nocompat' ;
8
8
// local testing
9
- else return process . argv [ 2 ] == null || process . argv [ 2 ] == 'all' ? 'all' : 'nocompat' ;
9
+ else return process . argv [ 2 ] == 'default' || process . argv [ 2 ] == null ? 'all' : 'nocompat' ;
10
10
} ) ( ) ;
11
- require ( './Tests/httpServer.js' ) ( build ) ;
12
11
13
- module . exports = function ( grunt ) {
12
+ module . exports = function ( grunt ) {
14
13
15
14
grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
16
15
require ( 'load-grunt-tasks' ) ( grunt ) ;
@@ -59,11 +58,14 @@ module.exports = function(grunt) {
59
58
}
60
59
} ) ;
61
60
62
- var compatBuild = [ 'clean:specs' , 'packager:all' , 'packager:specs' ] ;
63
- var nocompatBuild = [ 'clean:specs' , 'packager:nocompat' , 'packager:specs-nocompat' ] ;
61
+ var compatBuild = [ 'clean:specs' , 'packager:all' , 'packager:specs' , 'specsserver' ] ;
62
+ var nocompatBuild = [ 'clean:specs' , 'packager:nocompat' , 'packager:specs-nocompat' , 'specsserver' ] ;
64
63
var tasks = options . travis . build == 'default' ? compatBuild : nocompatBuild ;
65
64
tasks = usePhantom ? tasks . concat ( 'karma:continuous' ) : tasks . concat ( 'karma:sauceTask' ) ;
66
65
66
+ grunt . registerTask ( 'specsserver' , function ( ) {
67
+ require ( './Tests/httpServer.js' ) ( build ) ;
68
+ } ) ;
67
69
grunt . registerTask ( 'default' , compatBuild . concat ( 'karma:continuous' ) ) ; // local testing - compat build
68
70
grunt . registerTask ( 'nocompat' , nocompatBuild . concat ( 'karma:continuous' ) ) ; // local testing - no compat build
69
71
grunt . registerTask ( 'default:travis' , tasks ) ; // Travis & Sauce Labs
0 commit comments