Skip to content

Commit f51a6e9

Browse files
committedFeb 5, 2019
travis: added PhpStan
1 parent 06e95ba commit f51a6e9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ jobs:
4141
- php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php71.yml
4242

4343

44+
- stage: Static Analysis
45+
php: 7.1
46+
install:
47+
# Install PHPStan
48+
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
49+
- travis_retry composer install --no-progress --prefer-dist
50+
51+
script:
52+
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
53+
54+
4455
- stage: Code Coverage
4556
php: 7.2
4657
script:
@@ -51,6 +62,7 @@ jobs:
5162

5263

5364
allow_failures:
65+
- stage: Static Analysis
5466
- stage: Code Coverage
5567

5668

0 commit comments

Comments
 (0)
Failed to load comments.