Skip to content

Commit 7419a91

Browse files
committed
Grunt: Add all jQuery versions to test 1.9 beta against to testswarm-multi-jquery task
1 parent 42599a6 commit 7419a91

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

build/tasks/testswarm.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,12 @@ grunt.registerTask( "testswarm", function( commit, configFile ) {
6262
});
6363

6464
grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile ) {
65-
var test,
66-
allTests = {};
67-
for ( test in tests ) {
68-
allTests[ test + "-1.6.3" ] = tests[ test ] + "?nojshint=true&jquery=1.6.3";
69-
}
70-
for ( test in tests ) {
71-
allTests[ test + "-1.7.2" ] = tests[ test ] + "?nojshint=true&jquery=1.7.2";
72-
}
65+
var allTests = {};
66+
"1.6 1.6.1 1.6.3 1.6.4 1.7 1.7.1 1.7.2 git".split(" ").forEach(function( version ) {
67+
for ( var test in tests ) {
68+
allTests[ test + "-" + version ] = tests[ test ] + "?nojshint=true&jquery=" + version;
69+
}
70+
});
7371
submit( commit, allTests, configFile, this.async() );
7472
});
7573

0 commit comments

Comments
 (0)