1 /*global config:true, task:true*/
2 module.exports = function( grunt ) {
4 grunt.loadNpmTasks( "grunt-git-authors" );
7 pkg: '<json:package.json>',
9 // TODO include 'test/logs.html' as well
10 qunit: 'test/index.html',
12 'addons/canvas/canvas.html',
13 'addons/close-enough/close-enough.html',
14 'addons/composite/composite-demo-test.html'
18 qunit: 'qunit/qunit.js',
19 // addons: 'addons/**/*.js',
21 // TODO need to figure out which warnings to fix and which to disable
22 // tests: 'test/test.js'
80 grunt.registerTask( "testswarm", function( commit, configFile ) {
81 var testswarm = require( "testswarm" ),
82 config = grunt.file.readJSON( configFile ).qunit;
86 timeout: 1000 * 60 * 30,
89 authUsername: "qunit",
90 authToken: config.authToken,
91 jobName: 'QUnit commit #<a href="https://github.com/jquery/qunit/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>',
92 runMax: config.runMax,
93 "runNames[]": "QUnit",
94 "runUrls[]": config.testUrl + commit + "/test/index.html",
95 "browserSets[]": ["popular"]
99 grunt.registerTask('default', 'lint qunit');