1 module
.exports = function( grunt
) {
5 grunt
.registerTask( "testswarm", function( commit
, configFile
) {
7 testswarm
= require( "testswarm" ),
10 pull
= /PR-(\d+)/.exec( commit
),
11 config
= grunt
.file
.readJSON( configFile
).jquery
,
12 tests
= grunt
.config([ this.name
, "tests" ]);
15 jobName
= "Pull <a href='https://github.com/jquery/jquery/pull/" +
16 pull
[ 1 ] + "'>#" + pull
[ 1 ] + "</a>";
18 jobName
= "Commit <a href='https://github.com/jquery/jquery/commit/" +
19 commit
+ "'>" + commit
.substr( 0, 10 ) + "</a>";
22 tests
.forEach(function( test
) {
23 runs
[ test
] = config
.testUrl
+ commit
+ "/test/index.html?module=" + test
;
26 testswarm
.createClient( {
29 timeout
: 1000 * 60 * 30
31 .addReporter( testswarm
.reporters
.cli
)
33 id
: config
.authUsername
,
34 token
: config
.authToken
40 runMax
: config
.runMax
,
41 browserSets
: "popular-no-old-ie"
42 }, function( err
, passed
) {
44 grunt
.log
.error( err
);