diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d514d34..0fb621b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,10 @@ before_script: # Install & enable Xdebug for code coverage reports - pecl install xdebug - docker-php-ext-enable xdebug + - > + if [ "$CI_JOB_NAME" == "test:7.4" || "$CI_JOB_NAME" == "test:8.0" ]; then + pecl install ds && docker-php-ext-enable ds + fi # Install and run Composer - curl -sS https://getcomposer.org/installer | php - php composer.phar install @@ -26,9 +30,6 @@ test:7.4: tags: - default image: php:7.4 - before_script: - - pecl install ds - - docker-php-ext-enable ds script: - vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never test:7.4-without-ext-ds: @@ -45,9 +46,6 @@ test:8.0: tags: - default image: php:8.0 - before_script: - - pecl install ds - - docker-php-ext-enable ds script: - vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never test:8.0-without-ext-ds: