Skip to content

Commit

Permalink
Try using xdebug to get coverage report.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 12, 2016
1 parent 4518f5e commit 6127d98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
@@ -1,9 +1,9 @@
language: php

php:
- 7.0
- 5.5
- 5.6
- 7.0

dist: trusty

Expand Down Expand Up @@ -41,7 +41,7 @@ matrix:
- php: hhvm

before_install:
- if [ $HHVM != 1 ]; then phpenv config-rm xdebug.ini; fi
- if [ $HHVM != 1 && $TRAVIS_PHP_VERSION != 7.* ]; then phpenv config-rm xdebug.ini; fi

- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;

Expand Down Expand Up @@ -72,7 +72,7 @@ before_script:
- composer install --prefer-dist --no-interaction

script:
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.* ]]; then export CODECOVERAGE=1 ; phpdbg -qrr vendor/bin/phpunit --coverage-clover=clover.xml; fi
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION = 7.* ]]; then export CODECOVERAGE=1; vendor/bin/phpunit --coverage-clover=clover.xml; fi
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.* ]]; then vendor/bin/phpunit; fi

- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests; fi
Expand Down

0 comments on commit 6127d98

Please sign in to comment.