User Tools

Site Tools


gitlab-ci-phpunit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gitlab-ci-phpunit [2021/03/30 09:14] – created admingitlab-ci-phpunit [2021/03/30 09:18] (current) admin
Line 16: Line 16:
   script:   script:
     - ./vendor/bin/phpunit --coverage-text --log-junit phpunit-report.xml     - ./vendor/bin/phpunit --coverage-text --log-junit phpunit-report.xml
 +</code>
 +
 +If you can't find a xdebug enabled php image, build it yourself:
 +
 +<code yaml>
 +FROM php:<php-version>
 +
 +RUN pecl install xdebug \
 +    && docker-php-ext-enable xdebug \
 +    && echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
 +
 +CMD ["php", "-a"]
 +
 +WORKDIR /var/www/html
 </code> </code>
gitlab-ci-phpunit.1617088455.txt.gz · Last modified: 2021/03/30 09:14 by admin