Skip to content

Commit 8fdd27c

Browse files
committed
No PHPStan in PHP 7.2
1 parent 73c958c commit 8fdd27c

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ language: php
22
matrix:
33
include:
44
- php: 7.0
5-
env: DEPENDENCIES=lowest
5+
env: DEPENDENCIES=lowest PHPSTAN=yes
66
- php: 7.0
7-
env: DEPENDENCIES=highest
7+
env: DEPENDENCIES=highest PHPSTAN=yes
88
- php: 7.1
9-
env: DEPENDENCIES=lowest
9+
env: DEPENDENCIES=lowest PHPSTAN=yes
1010
- php: 7.1
11-
env: DEPENDENCIES=highest
11+
env: DEPENDENCIES=highest PHPSTAN=yes
1212
- php: master
13-
env: DEPENDENCIES=lowest
13+
env: DEPENDENCIES=lowest PHPSTAN=no
1414
- php: master
15-
env: DEPENDENCIES=highest
15+
env: DEPENDENCIES=highest PHPSTAN=no
1616
cache:
1717
directories:
1818
- $HOME/.composer/cache
@@ -21,7 +21,8 @@ before_script:
2121
- if [ "${DEPENDENCIES}" = "lowest" ]; then composer update --prefer-lowest --prefer-dist --no-interaction --no-progress; fi;
2222
- if [ "${DEPENDENCIES}" = "highest" ]; then composer update --prefer-dist --no-interaction --no-progress; fi;
2323
script:
24-
- bin/phing
24+
- if [ "${PHPSTAN}" = "yes" ]; then bin/phing; fi;
25+
- if [ "${PHPSTAN}" = "no" ]; then bin/phing check-without-phpstan; fi;
2526
after_script:
2627
- if [ "${TRAVIS_ALLOW_FAILURE}" = false ]; then
2728
wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.0/coveralls.phar

build.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
phpstan
1010
"/>
1111

12+
<target name="check-without-phpstan" depends="
13+
composer,
14+
lint,
15+
cs,
16+
tests
17+
"/>
18+
1219
<target name="composer">
1320
<exec
1421
executable="composer"

0 commit comments

Comments
 (0)