File tree Expand file tree Collapse file tree 3 files changed +39
-12
lines changed Expand file tree Collapse file tree 3 files changed +39
-12
lines changed Original file line number Diff line number Diff line change 1- sudo : false
21language : php
32
43cache :
54 directories :
65 - $HOME/.composer/cache/files
76
87php :
9- - 5.3
10- - 5.4
11- - 5.5
128 - 5.6
13- - hhvm
14- - 7.0
9+
10+ matrix :
11+ include :
12+ - php : 5.4
13+ dist : trusty
14+ - php : 5.5
15+ dist : trusty
16+ env : PHPUNIT_VERSION="^4.8"
17+ - php : 7.0
18+ env : PHPUNIT_VERSION="^6.5"
19+ - php : 7.1
20+ env : PHPUNIT_VERSION="^7.2"
21+ - php : 7.2
22+ env : PHPUNIT_VERSION="^7.2"
23+ - php : 7.3
24+ env : PHPUNIT_VERSION="^7.2"
25+ - php : 7.4
26+ env : PHPUNIT_VERSION="^7.2"
1527
1628before_install :
1729 - composer config -g github-oauth.github.com 8a184177873281ce443912bd9f8fc4a959f7e7bb
18- - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then composer require satooshi/php-coveralls:^1.0 --no-update; fi;
30+ - composer require satooshi/php-coveralls:^1.0 --no-update
1931
2032install :
2133 - composer update --prefer-dist --no-interaction
34+ - if [ "$PHPUNIT_VERSION" != "" ]; then composer global require "phpunit/phpunit:${PHPUNIT_VERSION}" --no-interaction; fi;
2235
2336before_script :
2437 - mkdir -p build/logs
38+ - DEPENDENCY_BINARY_FOLDER=`composer global config bin-dir --absolute --quiet`
2539
2640script :
27- - phpunit --coverage-clover build/logs/clover.xml
41+ - if [ "$PHPUNIT_VERSION" != "" ]; then XDEBUG_MODE=coverage ${DEPENDENCY_BINARY_FOLDER}/phpunit --coverage-clover build/logs/clover.xml; fi;
42+ - if [ "$PHPUNIT_VERSION" = "" ]; then XDEBUG_MODE=coverage phpunit --coverage-clover build/logs/clover.xml; fi;
2843
2944after_script :
30- - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php vendor/bin/coveralls -v; fi;
31- - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar -t 3; fi;
32- - if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi;
45+ - php vendor/bin/coveralls -v
46+ - wget https://scrutinizer-ci.com/ocular.phar -t 3
47+ - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit bootstrap =" vendor/autoload .php"
2+ <phpunit bootstrap =" tests/bootstrap .php"
33 colors=" true"
44 beStrictAboutTestsThatDoNotTestAnything=" true"
55 beStrictAboutOutputDuringTests=" true"
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ // See https://github.com/xdebug/xdebug/pull/699 .
4+ if ( !defined ('XDEBUG_CC_UNUSED ' ) ) {
5+ define ('XDEBUG_CC_UNUSED ' , 1 );
6+ }
7+
8+ if ( !defined ('XDEBUG_CC_DEAD_CODE ' ) ) {
9+ define ('XDEBUG_CC_DEAD_CODE ' , 2 );
10+ }
11+
12+ require_once __DIR__ . '/../vendor/autoload.php ' ;
You can’t perform that action at this time.
0 commit comments