Skip to content

Commit 4daa931

Browse files
committed
travis: added PhpStan
1 parent c41bd8e commit 4daa931

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ jobs:
4444
- php temp/coding-standard/ecs check src tests --config temp/coding-standard/coding-standard-php71.yml
4545

4646

47+
- stage: Static Analysis
48+
php: 7.1
49+
install:
50+
# Install PHPStan
51+
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
52+
- travis_retry composer install --no-progress --prefer-dist
53+
54+
script:
55+
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
56+
57+
4758
- stage: Code Coverage
4859
script:
4960
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
@@ -53,6 +64,7 @@ jobs:
5364

5465

5566
allow_failures:
67+
- stage: Static Analysis
5668
- stage: Code Coverage
5769

5870

0 commit comments

Comments
 (0)