mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Build: Make it possible to change browserSets in the testswarm task
(cherry-picked from 14872941f9
)
This commit is contained in:
parent
7ade83391e
commit
a59a1cd17a
@ -2,7 +2,7 @@ module.exports = function( grunt ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
grunt.registerTask( "testswarm", function( commit, configFile ) {
|
||||
grunt.registerTask( "testswarm", function( commit, configFile, browserSets ) {
|
||||
var jobName,
|
||||
testswarm = require( "testswarm" ),
|
||||
runs = {},
|
||||
@ -11,6 +11,10 @@ module.exports = function( grunt ) {
|
||||
config = grunt.file.readJSON( configFile ).jquery,
|
||||
tests = grunt.config([ this.name, "tests" ]);
|
||||
|
||||
if ( !browserSets ) {
|
||||
browserSets = [ "popular", "ios" ];
|
||||
}
|
||||
|
||||
if ( pull ) {
|
||||
jobName = "Pull <a href='https://github.com/jquery/jquery/pull/" +
|
||||
pull[ 1 ] + "'>#" + pull[ 1 ] + "</a>";
|
||||
@ -38,7 +42,7 @@ module.exports = function( grunt ) {
|
||||
name: jobName,
|
||||
runs: runs,
|
||||
runMax: config.runMax,
|
||||
browserSets: [ "popular", "ios" ]
|
||||
browserSets: browserSets
|
||||
}, function( err, passed ) {
|
||||
if ( err ) {
|
||||
grunt.log.error( err );
|
||||
|
Loading…
Reference in New Issue
Block a user