Skip to content

Commit

Permalink
phpstan added to the scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Dec 11, 2018
1 parent 373f001 commit 606a648
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ before_script:
- composer install -n
script:
- vendor/bin/codecept run unit --coverage --coverage-xml
- composer run phpstan
after_script:
- if [ $TRAVIS_PHP_VERSION = '7.2' ]; then php vendor/bin/php-coveralls; fi
after_success:
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"php-coveralls/php-coveralls": "^2.1",
"squizlabs/php_codesniffer": "^3.3",
"predis/predis": "^1.1",
"ext-redis": "*"
"ext-redis": "*",
"phpstan/phpstan": "^0.10.6"
},
"suggest": {
"predis/predis": "If your application depends on predis.",
Expand All @@ -36,6 +37,7 @@
"scripts": {
"unit-tests": "vendor/bin/codecept run unit --coverage",
"bc-check": "vendor/bin/roave-backward-compatibility-check",
"phpstan": "vendor/bin/phpstan analyse -l 4 src",
"phpcs": "vendor/bin/phpcs --standard=PSR2 src tests",
"phpcbf": "vendor/bin/phpcbf --standard=PSR2 src tests",
"phpcs-object-calisthenics": "vendor/bin/phpcs src -sp --standard=vendor/object-calisthenics/phpcs-calisthenics-rules/src/ObjectCalisthenics/ruleset.xml"
Expand Down

0 comments on commit 606a648

Please sign in to comment.