Revamp testing

Add a composer.json file

Bring in squizlabs/php_codesniffer and phpcompatibility/php-compatibility via composer

Do php linting via jakub-onderka/php-parallel-lint
This commit is contained in:
Sam Reed
2020-04-25 00:49:05 +01:00
committed by Reedy
parent 79d2786638
commit 01052bf8af
2 changed files with 22 additions and 18 deletions

19
composer.json Normal file
View File

@@ -0,0 +1,19 @@
{
"name": "billz/raspap-webgui",
"homepage": "https://raspap.com/",
"license": "GPL-3.0",
"keywords": ["raspberrypi"],
"require-dev": {
"jakub-onderka/php-parallel-lint": "1.0.0",
"phpcompatibility/php-compatibility": "^9.3.5",
"squizlabs/php_codesniffer": "^3.5.5"
},
"scripts": {
"lint": "parallel-lint . --exclude vendor",
"phpcs": "phpcs -p -s --config-set installed_paths vendor/phpcompatibility/php-compatibility .",
"test": [
"composer lint",
"composer phpcs"
]
}
}