diff options
| author | Vojta Jina | 2013-08-20 14:43:15 -0700 | 
|---|---|---|
| committer | Vojta Jina | 2013-08-23 16:49:10 -0700 | 
| commit | 7909ebedc2a098f041dd2d3835e7297392bfdb7d (patch) | |
| tree | 92d16a01e9df2d437bbfc79ccc38099936833fbe /lib | |
| parent | 1d06a943857719ef533ca374c05aa5e02089a4d9 (diff) | |
| download | angular.js-7909ebedc2a098f041dd2d3835e7297392bfdb7d.tar.bz2 | |
chore: run more browsers on Travis (IE8,IE9,IE10,Safari,FF)
Also instead of running everything in parallel, there are only two parallel tasks:
- e2e tests running in the background (only on Chrome)
- all the unit tests running sequentially
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/grunt/utils.js | 17 | 
1 files changed, 12 insertions, 5 deletions
| diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index 97e7c416..ed61a181 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -246,10 +246,18 @@ module.exports = {      };    }, -  parallelTask: function(name) { -    var args = [name, '--port=' + this.lastParallelTaskPort]; +  parallelTask: function(args, options) { +    var task = { +      grunt: true, +      args: args, +      stream: options && options.stream +    }; + +    args.push('--port=' + this.lastParallelTaskPort); -    if (grunt.option('browsers')) { +    if (args.indexOf('test:e2e') !== -1 && grunt.option('e2e-browsers')) { +      args.push('--browsers=' + grunt.option('e2e-browsers')); +    } else if (grunt.option('browsers')) {        args.push('--browsers=' + grunt.option('browsers'));      } @@ -259,8 +267,7 @@ module.exports = {      this.lastParallelTaskPort++; - -    return {grunt: true, args: args}; +    return task;    },    lastParallelTaskPort: 9876 | 
