Skip to content

Commit

Permalink
Merge pull request #669 from jakzal/phpdbg
Browse files Browse the repository at this point in the history
Replace xdebug with phpdbg for code coverage
  • Loading branch information
kylekatarnls committed Aug 22, 2019
2 parents e401ec3 + 0e45048 commit d365af4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ matrix:
# - php: 7.2
# env: DEPENDENCIES=low
- php: 7.3
env: COVERAGE=true
# Could be enabled when we'll upgrade PHPUnit
# - php: 7.3
# env: DEPENDENCIES=low
Expand All @@ -48,14 +49,18 @@ env:
TEST_CONFIG="phpunit.xml.dist"

before_script:
- phpenv config-rm xdebug.ini || echo "XDebug is not enabled"
- composer self-update
- if [[ $DEPENDENCIES = low ]]; then composer update --prefer-dist --prefer-lowest --prefer-stable; fi
- if [[ ! $DEPENDENCIES ]]; then composer install; fi

script:
- if [[ $WEBSITE = 'true' ]]; then php bin/build-website.php; fi
- if [[ $BUILD_PHAR != 'true' && $WEBSITE != 'true' && $TRAVIS_PHP_VERSION != 7.3 ]]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG; fi
- if [[ $BUILD_PHAR != 'true' && $WEBSITE != 'true' && $TRAVIS_PHP_VERSION = 7.3 ]]; then vendor/phpunit/phpunit/phpunit --configuration $TEST_CONFIG --colors --coverage-text; fi
- |
if [[ $WEBSITE != 'true' && $BUILD_PHAR != 'true' ]]; then
if [ "$COVERAGE" != "true" ]; then vendor/bin/phpunit --configuration $TEST_CONFIG --colors; fi
if [ "$COVERAGE" = "true" ]; then phpdbg -qrr vendor/bin/phpunit --configuration $TEST_CONFIG --colors --coverage-text; fi
fi
- if [[ $BUILD_PHAR = 'true' ]]; then git submodule update --init && ant package -D-phar:filename=./phpmd.phar && ./phpmd.phar --version; fi

notifications:
Expand Down

0 comments on commit d365af4

Please sign in to comment.