Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

4299191784ae37fd4fd7c6936ad0b98b63e7f48c
[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                         },
41                         globals: {
42                                 jQuery: true,
43                                 exports: true
44                         }
45                 },
46                 addons: {
47                         options: {
48                                 browser: true,
49                                 curly: true,
50                                 eqnull: true,
51                                 eqeqeq: true,
52                                 expr: true,
53                                 evil: true,
54                                 jquery: true,
55                                 latedef: true,
56                                 noarg: true,
57                                 onevar: true,
58                                 smarttabs: true,
59                                 trailing: true,
60                                 undef: true
61                         },
62                         globals: {
63                                 module: true,
64                                 test: true,
65                                 asyncTest: true,
66                                 expect: true,
67                                 start: true,
68                                 stop: true,
69                                 QUnit: true
70                         }
71                 },
72                 tests: {
73                 }
74         }
75 });
76
77 grunt.registerTask( "testswarm", function( commit, configFile ) {
78         var testswarm = require( "testswarm" ),
79                 config = grunt.file.readJSON( configFile );
80         testswarm({
81                 url: "http://swarm.jquery.org/",
82                 pollInterval: 10000,
83                 done: this.async()
84         }, {
85                 authUsername: "qunit",
86                 authToken: config.qunit.authToken,
87                 jobName: 'QUnit commit #<a href="https://github.com/jquery/qunit/commit/' + commit + '">' + commit + '</a>',
88                 runMax: 3,
89                 "runNames[]": "QUnit",
90                 "runUrls[]": "http://swarm.jquery.org/git/qunit/" + commit + "/test/index.html",
91                 "browserSets[]": ["popular"]
92         });
93 });
94
95 grunt.registerTask('default', 'lint qunit');
96
97 };

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