Skip to content
Snippets Groups Projects

Issue #3458947 by cmlara: Restore Code Coverage Reporting

Merged Conrad Lara requested to merge issue/s3fs-3458947:3458947-restore-code-coverage into 8.x-3.x
1 file
+ 8
3
Compare changes
  • Side-by-side
  • Inline
+ 8
3
@@ -85,10 +85,15 @@ phpunit:
HOSTNAME_EXTERNAL: s3fslocalstack
before_script:
# Install and enable PCOV.
- echo -e "\e[0Ksection_start:`date +%s`:php_ext_install[collapsed=true]\r\e[0KInstall PHP Extensions"
- apt-get update && apt-get install -qy --no-install-recommends $PHPIZE_DEPS
- echo -e "\e[0Ksection_start:`date +%s`:php_ext_install[collapsed=true]\r\e[0K"
- |
PCOV_INSTALLED=$(/usr/local/bin/pecl list | /bin/grep -i pcov | /usr/bin/wc -l) && true;
if [ "$PCOV_INSTALLED" == "0" ]; then
apt-get update && apt-get install -qy --no-install-recommends $PHPIZE_DEPS
pecl install pcov
fi
- echo -e '[pcov]\npcov.directory=.' > /usr/local/etc/php/conf.d/pcov.ini
- pecl install pcov && docker-php-ext-enable pcov
- docker-php-ext-enable pcov
- echo -e "\e[0Ksection_end:`date +%s`:php_ext_install\r\e[0K"
# GitLab doesn't support aliases when setting up the container.
# Get the IP for the localstack container.
Loading