Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Improve window.onerror handling
[qunit.git] / grunt.js
1 /*global config:true, task:true*/
2 module.exports = function( grunt ) {
3
4 grunt.initConfig({
5         pkg: '<json:package.json>',
6         qunit: {
7                 // TODO include 'test/logs.html' as well
8                 qunit: 'test/index.html',
9                 addons: [
10                         'addons/canvas/canvas.html',
11                         'addons/close-enough/close-enough.html',
12                         'addons/composite/composite-demo-test.html'
13                 ]
14         },
15         lint: {
16                 qunit: 'qunit/qunit.js',
17                 // addons: 'addons/**/*.js',
18                 grunt: 'grunt.js'
19                 // TODO need to figure out which warnings to fix and which to disable
20                 // tests: 'test/test.js'
21         },
22         jshint: {
23                 qunit: {
24                         options: {
25                                 onevar: true,
26                                 browser: true,
27                                 bitwise: true,
28                                 curly: true,
29                                 trailing: true,
30                                 immed: true,
31                                 latedef: false,
32                                 newcap: true,
33                                 noarg: false,
34                                 noempty: true,
35                                 nonew: true,
36                                 sub: true,
37                                 undef: true,
38                                 eqnull: true,
39                                 proto: true,
40                                 smarttabs: true
41                         },
42                         globals: {
43                                 jQuery: true,
44                                 exports: true
45                         }
46                 },
47                 addons: {
48                         options: {
49                                 browser: true,
50                                 curly: true,
51                                 eqnull: true,
52                                 eqeqeq: true,
53                                 expr: true,
54                                 evil: true,
55                                 jquery: true,
56                                 latedef: true,
57                                 noarg: true,
58                                 onevar: true,
59                                 smarttabs: true,
60                                 trailing: true,
61                                 undef: true
62                         },
63                         globals: {
64                                 module: true,
65                                 test: true,
66                                 asyncTest: true,
67                                 expect: true,
68                                 start: true,
69                                 stop: true,
70                                 QUnit: true
71                         }
72                 },
73                 tests: {
74                 }
75         }
76 });
77
78 grunt.registerTask( "testswarm", function( commit, configFile ) {
79         var testswarm = require( "testswarm" ),
80                 config = grunt.file.readJSON( configFile ).qunit;
81         testswarm({
82                 url: "http://swarm.jquery.org/",
83                 pollInterval: 10000,
84                 done: this.async()
85         }, {
86                 authUsername: "qunit",
87                 authToken: config.authToken,
88                 jobName: 'QUnit commit #<a href="https://github.com/jquery/qunit/commit/' + commit + '">' + commit.substr( 0, 10 ) + '</a>',
89                 runMax: config.runMax,
90                 "runNames[]": "QUnit",
91                 "runUrls[]": "http://swarm.jquery.org/git/qunit/" + commit + "/test/index.html",
92                 "browserSets[]": ["popular"]
93         });
94 });
95
96 grunt.registerTask('default', 'lint qunit');
97
98 };

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf