Skip to content

Commit 2790284

Browse files
committed
composer: added PHPStan
1 parent cc0c4b5 commit 2790284

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,8 @@ jobs:
4141

4242

4343
- stage: Static Analysis (informative)
44-
install:
45-
# Install PHPStan
46-
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
47-
- travis_retry composer install --no-progress --prefer-dist
4844
script:
49-
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
45+
- composer run-script phpstan
5046

5147

5248
- stage: Code Coverage

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@
2222
},
2323
"require-dev": {
2424
"nette/tester": "^2.0",
25-
"tracy/tracy": "^2.3"
25+
"tracy/tracy": "^2.3",
26+
"phpstan/phpstan": "^0.12"
2627
},
2728
"autoload": {
2829
"classmap": ["src/"]
2930
},
3031
"minimum-stability": "dev",
32+
"scripts": {
33+
"phpstan": "phpstan analyse --level 5 src",
34+
"tester": "tester tests -s"
35+
},
3136
"extra": {
3237
"branch-alias": {
3338
"dev-master": "3.2-dev"

0 commit comments

Comments
 (0)