File tree 4 files changed +11
-0
lines changed
4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 4
4
# tests
5
5
/phpunit.xml
6
6
/.phpunit.result.cache
7
+ /coverage.xml
Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ services: docker
3
3
script :
4
4
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
5
5
- docker-compose run tests
6
+
7
+ after_success :
8
+ - bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change @@ -3,4 +3,7 @@ FROM php:7.3-cli
3
3
RUN apt-get update \
4
4
&& apt-get install -y unzip \
5
5
&& docker-php-ext-install pcntl \
6
+ && pecl install xdebug \
7
+ && echo "zend_extension=xdebug.so" > /usr/local/etc/php/conf.d/xdebug.ini \
8
+ && echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/xdebug.ini \
6
9
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
Original file line number Diff line number Diff line change 22
22
<env name =" REMOTE_URL" value =" " />
23
23
<env name =" REMOTE_PASSWORD" value =" " />
24
24
</php >
25
+
26
+ <logging >
27
+ <log type =" coverage-clover" target =" coverage.xml" />
28
+ </logging >
25
29
</phpunit >
You can’t perform that action at this time.
0 commit comments