mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 18:13:13 +00:00
* composer: put require- together * add phpstan * add phpstan to travis * phpstan fixes * phpstan fixes * phpstan fixes * drop null defaults since every property is null by default * DescriptionFactory: fix parse nullable type * travis: add phpstan max * travis: fix phpstan config
37 lines
894 B
YAML
37 lines
894 B
YAML
language: php
|
|
|
|
php:
|
|
- 7.1
|
|
- 7.2
|
|
|
|
matrix:
|
|
include:
|
|
- php: 7.1
|
|
env: STATIC_ANALYSIS=true
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
|
|
install:
|
|
- composer install --no-interaction
|
|
# coding style
|
|
- if [[ $STATIC_ANALYSIS != "" ]]; then composer create-project symplify/easy-coding-standard temp/ecs; fi
|
|
|
|
script:
|
|
- vendor/bin/phpunit --coverage-clover=coverage.xml -v
|
|
# coding style
|
|
- if [[ $STATIC_ANALYSIS != "" ]]; then temp/ecs/bin/ecs check src tests; fi
|
|
- if [[ $STATIC_ANALYSIS != "" ]]; then vendor/bin/phpstan analyse src --level max --configuration phpstan.neon; fi
|
|
|
|
after_script:
|
|
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar;
|
|
- php coveralls.phar --verbose;
|
|
|
|
notifications:
|
|
irc: "irc.freenode.org#phpdocumentor"
|
|
email:
|
|
- [email protected]
|
|
- [email protected]
|
|
- [email protected]
|