Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Increasing testswarm timeout - other running jobs can make this take longer
[qunit.git] / grunt.js
1 /*global config:true, task:true*/
2 module.exports = function( grunt ) {
3
4 grunt.loadNpmTasks( "grunt-git-authors" );
5
6 grunt.initConfig({
7         pkg: '<json:package.json>',
8         qunit: {
9                 // TODO include 'test/logs.html' as well
10                 qunit: 'test/index.html',
11                 addons: [
12                         'addons/canvas/canvas.html',
13                         'addons/close-enough/close-enough.html',
14                         'addons/composite/composite-demo-test.html'
15                 ]
16         },
17         lint: {
18                 qunit: 'qunit/qunit.js',
19                 // addons: 'addons/**/*.js',
20                 grunt: 'grunt.js'
21                 // TODO need to figure out which warnings to fix and which to disable
22                 // tests: 'test/test.js'
23         },
24         jshint: {
25                 qunit: {
26                         options: {
27                                 onevar: true,
28                                 browser: true,
29                                 bitwise: true,
30                                 curly: true,
31                                 trailing: true,
32                                 immed: true,
33                                 latedef: false,
34                                 newcap: true,
35                                 noarg: false,
36                                 noempty: true,
37                                 nonew: true,
38                                 sub: true,
39                                 undef: true,
40                                 eqnull: true,
41                                 proto: true,
42                                 smarttabs: true
43                         },
44                         globals: {
45                                 jQuery: true,
46                                 exports: true
47                         }
48                 },
49                 addons: {
50                         options: {
51                                 browser: true,
52                                 curly: true,
53                                 eqnull: true,
54                                 eqeqeq: true,
55                                 expr: true,
56                                 evil: true,
57                                 jquery: true,
58                                 latedef: true,
59                                 noarg: true,
60                                 onevar: true,
61                                 smarttabs: true,
62                                 trailing: true,
63                                 undef: true
64                         },
65                         globals: {
66                                 module: true,
67                                 test: true,
68                                 asyncTest: true,
69                                 expect: true,
70                                 start: true,
71                                 stop: true,
72                                 QUnit: true
73                         }
74                 },
75                 tests: {
76                 }
77         }
78 });
79
80 grunt.registerTask( "testswarm", function( commit, configFile ) {
81         var testswarm = require( "testswarm" ),
82                 config = grunt.file.readJSON( configFile ).qunit;
83         testswarm({
84                 url: config.swarmUrl,
85                 pollInterval: 10000,
86                 timeout: 1000 * 60 * 30,
87                 done: this.async()
88         }, {
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"]
96         });
97 });
98
99 grunt.registerTask('default', 'lint qunit');
100
101 };

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