Skip to content

Commit

Permalink
fix phpstan for php7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Apr 10, 2018
1 parent afd2bdf commit 99371cd
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: php

php:
- 5.6
- 7.0
- 7.1

before_script:
- composer self-update
Expand All @@ -11,15 +11,16 @@ before_script:
install:
- composer require satooshi/php-coveralls
- |
composer global require phpstan/phpstan dev-master --prefer-dist \
&& composer global show | grep phpstan
if [ $(phpenv version-name) = "7.1" ]; then
composer require --dev phpstan/phpstan;
fi
script:
- mkdir -p build/logs
- phpstan analyse src --level 1 -c phpstan.neon
- |
if [ $(phpenv version-name) = "7.1" ]; then
vendor/bin/phpstan analyse src --level 1 -c phpstan.neon;
fi
- vendor/bin/phpunit --configuration phpunit.xml --coverage-clover build/logs/clover.xml

after_success:
- travis_retry php vendor/bin/coveralls -v


- travis_retry php vendor/bin/coveralls -v

0 comments on commit 99371cd

Please sign in to comment.