Skip to content

Commit

Permalink
travis: added PhpStan
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 5, 2019
1 parent 06e95ba commit f51a6e9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -51,6 +62,7 @@ jobs:


allow_failures:
- stage: Static Analysis
- stage: Code Coverage


Expand Down

0 comments on commit f51a6e9

Please sign in to comment.