mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Add a script to run the same tests as jenkins locally
Make `composer tests` use only phpcs Also add `composer all-tests`, which also runs the self-check. php-cs-fixer was removed from .travis.yml earlier. I'm guessing that composer was overlooked? The goal is to make it easy to create PRs passing travis checks.
This commit is contained in:
parent
82fe241831
commit
7c4683784f
@ -41,12 +41,15 @@
|
|||||||
"ext-igbinary": "^2.0.5"
|
"ext-igbinary": "^2.0.5"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"psalm": "./psalm",
|
"psalm": "./psalm --find-dead-code",
|
||||||
"standards": "php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes",
|
"standards": "phpcs",
|
||||||
"tests": [
|
"tests": [
|
||||||
"php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
|
"phpcs",
|
||||||
"php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes --dry-run .php_cs.dist",
|
"phpunit"
|
||||||
"php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes --dry-run",
|
],
|
||||||
|
"all-tests": [
|
||||||
|
"phpcs",
|
||||||
|
"./psalm --find-dead-code",
|
||||||
"phpunit"
|
"phpunit"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user