Added phpstan to build matrix

This commit is contained in:
Alejandro Celaya 2017-12-27 15:43:59 +01:00
parent af0ff0f65b
commit e024ba5d94

View file

@ -2,8 +2,7 @@ language: php
branches:
only:
- master
- develop
- /.*/
php:
- 7
@ -17,10 +16,12 @@ before_install:
before_script:
- composer self-update
- composer install --no-interaction
- if [[ $TRAVIS_PHP_VERSION = 7.1 ]] || [[ $TRAVIS_PHP_VERSION = 7.2 ]]; then composer global require --dev phpstan/phpstan:0.9.*; fi
script:
- mkdir build
- composer check
- if [[ $TRAVIS_PHP_VERSION = 7.1 ]] || [[ $TRAVIS_PHP_VERSION = 7.2 ]]; then ~/.composer/vendor/bin/phpstan analyse module/*/src/ --level=5; fi
after_script:
- vendor/bin/phpcov merge build --clover build/clover.xml