X-Git-Url: http://git.altlug.ru/?p=qunit.git;a=blobdiff_plain;f=grunt.js;h=4299191784ae37fd4fd7c6936ad0b98b63e7f48c;hp=fbe9c701fa141682024d5f9722e42b6dabce057a;hb=4f93d7a01e7ba04ea7235fec8950202ca4db2deb;hpb=b05ff57d07273d54b6a17cf4d19793dfd413fce6 diff --git a/grunt.js b/grunt.js index fbe9c70..4299191 100644 --- a/grunt.js +++ b/grunt.js @@ -44,10 +44,29 @@ grunt.initConfig({ } }, addons: { - // meh options: { + browser: true, + curly: true, + eqnull: true, + eqeqeq: true, + expr: true, + evil: true, + jquery: true, + latedef: true, + noarg: true, onevar: true, - smarttabs: true + smarttabs: true, + trailing: true, + undef: true + }, + globals: { + module: true, + test: true, + asyncTest: true, + expect: true, + start: true, + stop: true, + QUnit: true } }, tests: { @@ -55,7 +74,24 @@ grunt.initConfig({ } }); -// Default task. +grunt.registerTask( "testswarm", function( commit, configFile ) { + var testswarm = require( "testswarm" ), + config = grunt.file.readJSON( configFile ); + testswarm({ + url: "http://swarm.jquery.org/", + pollInterval: 10000, + done: this.async() + }, { + authUsername: "qunit", + authToken: config.qunit.authToken, + jobName: 'QUnit commit #' + commit + '', + runMax: 3, + "runNames[]": "QUnit", + "runUrls[]": "http://swarm.jquery.org/git/qunit/" + commit + "/test/index.html", + "browserSets[]": ["popular"] + }); +}); + grunt.registerTask('default', 'lint qunit'); };