Florianschmidtwelzow has uploaded a new change for review.

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

Change subject: build: Setup banana test for i18n messages
......................................................................

build: Setup banana test for i18n messages

Change-Id: Ie4ba01d7ac67ab2b3059b860b0e1d4cd26353dab
---
M Gruntfile.js
M package.json
2 files changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/75/231475/1

diff --git a/Gruntfile.js b/Gruntfile.js
index a346534..8b0cbb6 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -12,6 +12,7 @@
        grunt.loadNpmTasks( 'grunt-qunit-istanbul' );
        grunt.loadNpmTasks( 'grunt-contrib-watch' );
        grunt.loadNpmTasks( 'grunt-notify' );
+       grunt.loadNpmTasks( 'grunt-banana-checker' );
 
        grunt.initConfig( {
                URL: process.env.MEDIAWIKI_URL || 
'http://127.0.0.1:8080/w/index.php/',
@@ -99,10 +100,13 @@
                                        reload: true
                                }
                        }
+               },
+               banana: {
+                       all: 'i18n/'
                }
        } );
 
-       grunt.registerTask( 'lint', [ 'jshint', 'jscs' ] );
+       grunt.registerTask( 'lint', [ 'jshint', 'jscs', 'banana' ] );
 
        // grunt test will be run by npm test which will be run by Jenkins
        // Do not execute qunit here, or other tasks that require full mediawiki
diff --git a/package.json b/package.json
index 8c6139c..7c49ae0 100644
--- a/package.json
+++ b/package.json
@@ -21,6 +21,7 @@
                "grunt-cli": "0.1.13",
                "grunt-mkdir": "^0.1.2",
                "grunt-contrib-jshint": "0.11.2",
+               "grunt-banana-checker": "0.2.2",
                "grunt-jscs": "2.0.0",
                "js-beautify": "1.5.10",
                "grunt-notify": "0.4.1",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4ba01d7ac67ab2b3059b860b0e1d4cd26353dab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>

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

Reply via email to