File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ language: php
22
33php :
44 - 7.0
5- - 7.2
65 - 7.1
76 - 5.6
87
@@ -13,33 +12,40 @@ sudo: false
1312env :
1413 global :
1514 - DEFAULT=1
15+ - CODECOVERAGE=0
1616
1717matrix :
1818 fast_finish : true
1919
2020 include :
21+ - php : 7.2
22+ env : CODECOVERAGE=1 DEFAULT=0
23+
2124 - php : 7.0
2225 env : PHPCS=1 DEFAULT=0
2326
2427 - php : 7.0
2528 env : PHPSTAN=1 DEFAULT=0
2629
30+ - php : 5.6
31+ env : PREFER_LOWEST=1
32+
2733before_script :
2834 - if [[ $TRAVIS_PHP_VERSION != 7.0 ]]; then phpenv config-rm xdebug.ini; fi
2935
3036 - if [[ $PHPSTAN = 1 ]]; then composer require --dev phpstan/phpstan:^0.9; fi
3137 - if [[ $PHPSTAN != 1 ]]; then composer install --no-interaction; fi
3238
3339script :
34- - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then ./vendor/bin/phpunit --coverage-clover=clover.xml; fi
35- - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 ]]; then ./vendor/bin/phpunit; fi
40+ - if [[ $CODECOVERAGE = 1 ]]; then ./vendor/bin/phpunit --coverage-clover=clover.xml; fi
41+ - if [[ $DEFAULT = 1 ]]; then ./vendor/bin/phpunit; fi
3642
3743 - if [[ $PHPCS = 1 ]]; then ./vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
3844
3945 - if [[ $PHPSTAN = 1 ]]; then vendor/bin/phpstan analyse -l 2 src; fi
4046
4147after_success :
42- - if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.0 ]]; then bash <(curl -s https://codecov.io/bash); fi
48+ - if [[ $CODECOVERAGE = 1 ]]; then bash <(curl -s https://codecov.io/bash); fi
4349
4450notifications :
4551 email : false
You can’t perform that action at this time.
0 commit comments