From e4b20162969f1622d6517a8e04892500df5e50c9 Mon Sep 17 00:00:00 2001 From: "tan.nguyen" Date: Thu, 2 May 2024 16:32:02 +0700 Subject: [PATCH 1/3] Init. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5ac2542..5ff6ab5 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://github.com/krakjoe/pcov/tags +ENV CODECOV_VERSION=1.0.11 +RUN pecl install "pcov-${CODECOV_VERSION}" && docker-php-ext-enable pcov + # 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 \ From b69bf14a987251c3577e73aa33e72ac06aa619a4 Mon Sep 17 00:00:00 2001 From: "tan.nguyen" Date: Thu, 2 May 2024 21:42:01 +0700 Subject: [PATCH 2/3] Add test. --- Dockerfile | 4 ++-- goss.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ff6ab5..6aca3dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -178,9 +178,9 @@ RUN curl -L -o "/usr/local/bin/codecov" "https://github.com/codecov/uploader/rel && codecov --version # Install PCOV -# @see https://github.com/krakjoe/pcov/tags +# @see https://pecl.php.net/package/pcov ENV CODECOV_VERSION=1.0.11 -RUN pecl install "pcov-${CODECOV_VERSION}" && docker-php-ext-enable pcov +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. diff --git a/goss.yaml b/goss.yaml index bcd7635..41a8592 100644 --- a/goss.yaml +++ b/goss.yaml @@ -221,3 +221,10 @@ command: - /usr/bin/zip stderr: [] timeout: 10000 + + php -i | grep -Fq "PCOV support => Enabled": + exit-status: 0 + stdout: + - PCOV support => Enabled + stderr: [ ] + timeout: 10000 From d608c42941dbb8f5ec06e21cc2d2f65f66b07174 Mon Sep 17 00:00:00 2001 From: "tan.nguyen" Date: Thu, 2 May 2024 21:47:05 +0700 Subject: [PATCH 3/3] Update test. --- goss.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/goss.yaml b/goss.yaml index 41a8592..271d61a 100644 --- a/goss.yaml +++ b/goss.yaml @@ -224,7 +224,5 @@ command: php -i | grep -Fq "PCOV support => Enabled": exit-status: 0 - stdout: - - PCOV support => Enabled stderr: [ ] timeout: 10000