Skip to content

Commit 67f655b

Browse files
committed
travis: added PhpStan
1 parent 786e717 commit 67f655b

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
@@ -38,6 +38,17 @@ jobs:
3838
- php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php71.yml
3939

4040

41+
- stage: Static Analysis
42+
php: 7.1
43+
install:
44+
# Install PHPStan
45+
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
46+
- travis_retry composer install --no-progress --prefer-dist
47+
48+
script:
49+
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
50+
51+
4152
- stage: Code Coverage
4253
php: 7.2
4354
script:
@@ -48,6 +59,7 @@ jobs:
4859

4960

5061
allow_failures:
62+
- stage: Static Analysis
5163
- stage: Code Coverage
5264

5365

0 commit comments

Comments
 (0)