mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
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:
19
composer.json
Normal file
19
composer.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user