11language : php
2- php :
3- - 7.1
4- - 7.2
5- - nightly
2+ php : [ 7.1, 7.2, nightly ]
63sudo : false
74
85env :
@@ -13,33 +10,35 @@ matrix:
1310 - php : nightly
1411
1512install :
16- - composer install --no-interaction --prefer-dist --optimize-autoloader
13+ - travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
14+ - travis_retry composer global require phpunit/phpunit # cannot use phpunit.phar or require-dev, because this package is a phpunit dep
15+ - travis_retry wget --no-verbose https://phar.io/releases/phive.phar
16+
17+ script :
18+ - /home/travis/.composer/vendor/bin/phpunit --no-coverage
1719
1820jobs :
1921 include :
20- - stage : test
21- script :
22- - vendor/bin/phpunit --no-coverage
23-
2422 - stage : coverage
2523 php : 7.1
2624 script :
27- - vendor/bin/phpunit
25+ - /home/travis/.composer/ vendor/bin/phpunit
2826 after_script :
29- - wget https://scrutinizer-ci.com/ocular.phar && php ocular .phar code-coverage:upload --format= php-clover build/logs/clover.xml
30- - wget https://github .com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls. phar && php coveralls .phar --verbose
27+ - travis_retry php phive .phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
28+ - travis_retry wget --no-verbose https://scrutinizer-ci .com/ocular. phar && php ocular .phar code-coverage:upload --format=php-clover build/logs/clover.xml
3129
3230 - stage : lint
3331 php : 7.1
3432 before_script :
35- - composer create-project symplify/easy-coding-standard temp/ecs
33+ - travis_retry php phive.phar --no-progress install --trust-gpg-keys 8E730BA25823D8B5 phpstan
3634 script :
37- - temp/ecs/bin/ecs check src tests
38- - vendor/bin/phpstan analyse src --level max --configuration phpstan.neon
35+ - ./tools/phpstan analyse src --level max --configuration phpstan.neon
36+ - composer create-project symplify/easy-coding-standard temp/ecs && temp/ecs/bin/ecs check src tests
3937
4038cache :
4139 directories :
4240 - $HOME/.composer/cache/files
41+ - $HOME/.phive
4342
4443notifications :
4544 irc : " irc.freenode.org#phpdocumentor"
0 commit comments