build: Add php-parallel-lint and MinusX

php-lint will test for valid php files
MinusX will test for executable bits

Change-Id: I29038a499eb83d2ea0bad6a8c23c739964d86087
This commit is contained in:
Umherirrender 2017-11-03 19:48:45 +01:00
parent dc435c89a1
commit 039d2cd82a
3 changed files with 20 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,4 +1,6 @@
/node_modules/
/vendor/
/composer.lock
.svn
*~
*.kate-swp

View file

@ -10,7 +10,8 @@ module.exports = function ( grunt ) {
jsonlint: {
all: [
'**/*.json',
'!node_modules/**'
'!node_modules/**',
'!vendor/**'
]
}
} );

16
composer.json Normal file
View file

@ -0,0 +1,16 @@
{
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.2.0"
},
"scripts": {
"test": [
"parallel-lint . --exclude vendor --exclude node_modules",
"minus-x check ."
],
"fix": [
"minus-x fix ."
]
}
}