Discussion:
[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceAbout[master]: Add "composer test" configuration
Legoktm (Code Review)
2017-12-30 10:14:46 UTC
Permalink
Legoktm has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/401049 )

Change subject: Add "composer test" configuration
......................................................................

Add "composer test" configuration

Change-Id: I6b78637b5d6b4a35ed958cf105d4dd2902dc3773
---
M composer.json
1 file changed, 14 insertions(+), 0 deletions(-)


git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceAbout refs/changes/49/401049/1

diff --git a/composer.json b/composer.json
index c7d127c..6a975ff 100644
--- a/composer.json
+++ b/composer.json
@@ -6,8 +6,22 @@
"require": {
"composer/installers": "~1.0"
},
+ "require-dev": {
+ "jakub-onderka/php-parallel-lint": "0.9.2",
+ "jakub-onderka/php-console-highlighter": "0.3.2",
+ "mediawiki/minus-x": "0.2.1"
+ },
"autoload": {
"psr-4": {
}
+ },
+ "scripts": {
+ "test": [
+ "parallel-lint . --exclude vendor --exclude node_modules",
+ "minus-x check ."
+ ],
+ "fix": [
+ "minus-x fix ."
+ ]
}
}
--
To view, visit https://gerrit.wikimedia.org/r/401049
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b78637b5d6b4a35ed958cf105d4dd2902dc3773
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceAbout
Gerrit-Branch: master
Gerrit-Owner: Legoktm <***@member.fsf.org>
jenkins-bot (Code Review)
2017-12-30 22:18:31 UTC
Permalink
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/401049 )

Change subject: Add php-parallel-lint, grunt-jsonlint and grunt-banana-checker
......................................................................


Add php-parallel-lint, grunt-jsonlint and grunt-banana-checker

jsonlint and banana-checker will test for valid i18n files
php-lint will test for valid php files

Change-Id: I6b78637b5d6b4a35ed958cf105d4dd2902dc3773
---
A Gruntfile.js
M composer.json
A package.json
3 files changed, 44 insertions(+), 0 deletions(-)

Approvals:
Umherirrender: Looks good to me, approved
jenkins-bot: Verified



diff --git a/Gruntfile.js b/Gruntfile.js
new file mode 100644
index 0000000..ea67e84
--- /dev/null
+++ b/Gruntfile.js
@@ -0,0 +1,19 @@
+module.exports = function ( grunt ) {
+ grunt.loadNpmTasks( 'grunt-jsonlint' );
+ grunt.loadNpmTasks( 'grunt-banana-checker' );
+
+ var conf = grunt.file.readJSON( 'extension.json' );
+ grunt.initConfig( {
+ banana: conf.MessagesDirs,
+ jsonlint: {
+ all: [
+ '**/*.json',
+ '!node_modules/**',
+ '!vendor/**'
+ ]
+ }
+ } );
+
+ grunt.registerTask( 'test', [ 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'default', 'test' );
+};
diff --git a/composer.json b/composer.json
index c7d127c..6a975ff 100644
--- a/composer.json
+++ b/composer.json
@@ -6,8 +6,22 @@
"require": {
"composer/installers": "~1.0"
},
+ "require-dev": {
+ "jakub-onderka/php-parallel-lint": "0.9.2",
+ "jakub-onderka/php-console-highlighter": "0.3.2",
+ "mediawiki/minus-x": "0.2.1"
+ },
"autoload": {
"psr-4": {
}
+ },
+ "scripts": {
+ "test": [
+ "parallel-lint . --exclude vendor --exclude node_modules",
+ "minus-x check ."
+ ],
+ "fix": [
+ "minus-x fix ."
+ ]
}
}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..10fa9bc
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+ "private": true,
+ "scripts": {
+ "test": "grunt test"
+ },
+ "devDependencies": {
+ "grunt": "1.0.1",
+ "grunt-banana-checker": "0.6.0",
+ "grunt-jsonlint": "1.1.0"
+ }
+}
--
To view, visit https://gerrit.wikimedia.org/r/401049
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6b78637b5d6b4a35ed958cf105d4dd2902dc3773
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/BlueSpiceAbout
Gerrit-Branch: master
Gerrit-Owner: Legoktm <***@member.fsf.org>
Gerrit-Reviewer: D3r1ck01 <***@gmail.com>
Gerrit-Reviewer: Ljonka <***@gmail.com>
Gerrit-Reviewer: Mglaser <***@hallowelt.biz>
Gerrit-Reviewer: Pwirth <***@hallowelt.biz>
Gerrit-Reviewer: Robert Vogel <***@hallowelt.biz>
Gerrit-Reviewer: Umherirrender <***@web.de>
Gerrit-Reviewer: jenkins-bot <>
Loading...