1
0
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:
Tyson Andre 2018-02-19 09:20:34 -08:00 committed by Matthew Brown
parent 82fe241831
commit 7c4683784f

View File

@ -41,12 +41,15 @@
"ext-igbinary": "^2.0.5"
},
"scripts": {
"psalm": "./psalm",
"standards": "php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes",
"psalm": "./psalm --find-dead-code",
"standards": "phpcs",
"tests": [
"php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes --dry-run .php_cs.dist",
"php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes --dry-run",
"phpcs",
"phpunit"
],
"all-tests": [
"phpcs",
"./psalm --find-dead-code",
"phpunit"
]
}