From f51a6e9717f5f91ef412eb883d2f642f0ee23477 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 5 Feb 2019 18:27:26 +0100 Subject: [PATCH] travis: added PhpStan --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 17804a31..9105a1bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,17 @@ jobs: - php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php71.yml + - stage: Static Analysis + php: 7.1 + 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 + + - stage: Code Coverage php: 7.2 script: @@ -51,6 +62,7 @@ jobs: allow_failures: + - stage: Static Analysis - stage: Code Coverage