Skip to content

Commit

Permalink
No PHPStan in PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Jun 29, 2017
1 parent e114621 commit 6c3a206
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .travis.yml
Expand Up @@ -2,17 +2,17 @@ language: php
matrix:
include:
- php: 7.0
env: DEPENDENCIES=lowest
env: DEPENDENCIES=lowest PHPSTAN=yes
- php: 7.0
env: DEPENDENCIES=highest
env: DEPENDENCIES=highest PHPSTAN=yes
- php: 7.1
env: DEPENDENCIES=lowest
env: DEPENDENCIES=lowest PHPSTAN=yes
- php: 7.1
env: DEPENDENCIES=highest
env: DEPENDENCIES=highest PHPSTAN=yes
- php: master
env: DEPENDENCIES=lowest
env: DEPENDENCIES=lowest PHPSTAN=no
- php: master
env: DEPENDENCIES=highest
env: DEPENDENCIES=highest PHPSTAN=no
cache:
directories:
- $HOME/.composer/cache
Expand All @@ -21,7 +21,8 @@ before_script:
- if [ "${DEPENDENCIES}" = "lowest" ]; then composer update --prefer-lowest --prefer-dist --no-interaction --no-progress; fi;
- if [ "${DEPENDENCIES}" = "highest" ]; then composer update --prefer-dist --no-interaction --no-progress; fi;
script:
- bin/phing
- if [ "${PHPSTAN}" = "yes" ]; then bin/phing; fi;
- if [ "${PHPSTAN}" = "no" ]; then bin/phing check-without-phpstan; fi;
after_script:
- if [ "${TRAVIS_ALLOW_FAILURE}" = false ]; then
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.0/coveralls.phar
Expand Down
7 changes: 7 additions & 0 deletions build.xml
Expand Up @@ -9,6 +9,13 @@
phpstan
"/>

<target name="check-without-phpstan" depends="
composer,
lint,
cs,
tests
"/>

<target name="composer">
<exec
executable="composer"
Expand Down

0 comments on commit 6c3a206

Please sign in to comment.