diff --git a/Dockerfile b/Dockerfile index 5ac2542..6aca3dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -177,6 +177,11 @@ RUN curl -L -o "/usr/local/bin/codecov" "https://github.com/codecov/uploader/rel && chmod +x /usr/local/bin/codecov \ && codecov --version +# Install PCOV +# @see https://pecl.php.net/package/pcov +ENV CODECOV_VERSION=1.0.11 +RUN pecl install "pcov-${CODECOV_VERSION}" && docker-php-ext-enable pcov && php -m + # Install a stub for pygmy. # Some frameworks may require presence of tools that are not required in CI container. RUN ln -s /usr/bin/true /usr/local/bin/pygmy \ diff --git a/goss.yaml b/goss.yaml index bcd7635..271d61a 100644 --- a/goss.yaml +++ b/goss.yaml @@ -221,3 +221,8 @@ command: - /usr/bin/zip stderr: [] timeout: 10000 + + php -i | grep -Fq "PCOV support => Enabled": + exit-status: 0 + stderr: [ ] + timeout: 10000