1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-22 18:02:25 +01:00

composer: added PHPStan

This commit is contained in:
David Grudl 2019-12-10 17:08:07 +01:00
parent 294787a26e
commit 7d55fd03b0
2 changed files with 7 additions and 6 deletions

View File

@ -46,12 +46,8 @@ jobs:
- stage: Static Analysis (informative)
install:
# Install PHPStan
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
- travis_retry composer install --no-progress --prefer-dist
script:
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
- composer run-script phpstan
- stage: Code Coverage

View File

@ -15,7 +15,8 @@
},
"require-dev": {
"tracy/tracy": "~2.2",
"nette/tester": "~2.0"
"nette/tester": "~2.0",
"phpstan/phpstan": "^0.12"
},
"replace": {
"dg/dibi": "*"
@ -23,6 +24,10 @@
"autoload": {
"classmap": ["src/"]
},
"scripts": {
"phpstan": "phpstan analyse --autoload-file vendor/autoload.php --level 5 src",
"tester": "tester tests -s"
},
"extra": {
"branch-alias": {
"dev-master": "4.1-dev"