Skip to content

Commit

Permalink
Fix PCOV
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Aug 10, 2020
1 parent 81cf574 commit 885f0c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:

- name: PHPUnit (Xdebug)
run: |
docker-compose -f tests/docker/php${{ matrix.php-version }}/docker-compose.yml exec -T php_fpm_xdebug php -dmemory_limit=-1 vendor/phpunit/phpunit/phpunit --coverage-clover=coverage-xdebug.xml;
docker-compose -f tests/docker/php${{ matrix.php-version }}/docker-compose.yml exec -T php_fpm_xdebug php -dmemory_limit=-1 vendor/phpunit/phpunit/phpunit --coverage-clover=coverage-xdebug.xml --path-coverage;
if [ "${{ matrix.php-version }}" = "7.4" ]; then
wget https://scrutinizer-ci.com/ocular.phar;
php ocular.phar code-coverage:upload --format=php-clover coverage-xdebug.xml;
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
</testsuite>
</testsuites>

<coverage pathCoverage="true" processUncoveredFiles="true" cacheDirectory="build/phpunit-cache/coverage">
<!-- pathCoverage must be set false here for CI or PCOV/PHPDBG fail. It is enabled via CLI for Xdebug -->
<coverage pathCoverage="false" processUncoveredFiles="true" cacheDirectory="build/phpunit-cache/coverage">

<include>
<directory>src</directory>
Expand Down

0 comments on commit 885f0c2

Please sign in to comment.