gitlab-ci

This commit is contained in:
R. Eric Wheeler 2021-03-04 11:41:02 -08:00
parent c8de7fb826
commit f5fe33582a
1 changed files with 4 additions and 6 deletions

View File

@ -14,6 +14,10 @@ before_script:
# Install & enable Xdebug for code coverage reports # Install & enable Xdebug for code coverage reports
- pecl install xdebug - pecl install xdebug
- docker-php-ext-enable 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 # Install and run Composer
- curl -sS https://getcomposer.org/installer | php - curl -sS https://getcomposer.org/installer | php
- php composer.phar install - php composer.phar install
@ -26,9 +30,6 @@ test:7.4:
tags: tags:
- default - default
image: php:7.4 image: php:7.4
before_script:
- pecl install ds
- docker-php-ext-enable ds
script: script:
- vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never - vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never
test:7.4-without-ext-ds: test:7.4-without-ext-ds:
@ -45,9 +46,6 @@ test:8.0:
tags: tags:
- default - default
image: php:8.0 image: php:8.0
before_script:
- pecl install ds
- docker-php-ext-enable ds
script: script:
- vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never - vendor/bin/phpunit --configuration phpunit.xml --coverage-text --colors=never
test:8.0-without-ext-ds: test:8.0-without-ext-ds: