Paladox has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/245185

Change subject: [AJAXPoll] Update jenkins tests
......................................................................

[AJAXPoll] Update jenkins tests

Add gruntfile.js.

Add composer.json

Change-Id: Ib47d5cf832c92326a2eb2acb4ad6bcd8615243e5
---
M .gitignore
A .jshintignore
M Gruntfile.js
A composer.json
M package.json
5 files changed, 22 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AJAXPoll 
refs/changes/85/245185/1

diff --git a/.gitignore b/.gitignore
index 4bf4869..8be5431 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
 *.kate-swp
 .*.swp
 node_modules/
+vendor/
diff --git a/.jshintignore b/.jshintignore
new file mode 100644
index 0000000..0f77f29
--- /dev/null
+++ b/.jshintignore
@@ -0,0 +1 @@
+MwEmbedModules
diff --git a/Gruntfile.js b/Gruntfile.js
index 9c56558..59b31b0 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,9 +1,15 @@
 /*jshint node:true */
 module.exports = function ( grunt ) {
-       grunt.loadNpmTasks( 'grunt-banana-checker' );
+       grunt.loadNpmTasks( 'grunt-contrib-jshint' );
        grunt.loadNpmTasks( 'grunt-jsonlint' );
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
 
        grunt.initConfig( {
+               jshint: {
+                       all: [
+                               '*.js'
+                       ]
+               },
                banana: {
                        all: 'i18n/'
                },
@@ -15,6 +21,6 @@
                }
        } );
 
-       grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] 
);
        grunt.registerTask( 'default', 'test' );
 };
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..f2883f7
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,10 @@
+{
+       "require-dev": {
+               "jakub-onderka/php-parallel-lint": "0.9"
+       },
+       "scripts": {
+               "test": [
+                       "parallel-lint . --exclude vendor"
+               ]
+       }
+}
diff --git a/package.json b/package.json
index 3489c4b..d89d53b 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
     "grunt": "0.4.5",
     "grunt-cli": "0.1.13",
     "grunt-banana-checker": "0.4.0",
-    "grunt-jsonlint": "1.0.4"
+    "grunt-contrib-jshint": "0.11.3",
+    "grunt-jsonlint": "1.0.5"
   }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/245185
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib47d5cf832c92326a2eb2acb4ad6bcd8615243e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AJAXPoll
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to