From f5fe33582ae1ccdff7fbfef2cb7d8b240e8722c6 Mon Sep 17 00:00:00 2001 From: "R. Eric Wheeler" Date: Thu, 4 Mar 2021 11:41:02 -0800 Subject: [PATCH] gitlab-ci --- .gitlab-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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: