Install and enable pdo_mysql PHP extension

This commit is contained in:
Daniel_I_Am 2021-09-05 18:29:14 +02:00
parent fe8e9a8943
commit c1cf6a0633

View File

@ -52,6 +52,7 @@ test-job:
script:
- pecl install xdebug
- echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
- docker-php-ext-install pdo pdo_mysql
- echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/xdebug.ini
- echo "DB_CONNECTION=mysql" >> .env.testing
- echo "DB_HOST=mysql" >> .env.testing
@ -59,8 +60,8 @@ test-job:
- echo "DB_DATABASE=\"$MYSQL_DATABASE\"" >> .env.testing
- echo "DB_USERNAME=root" >> .env.testing
- echo "DB_PASSWORD=\"$MYSQL_ROOT_PASSWORD\"" >> .env.testing
- php artisan migrate:fresh --seed --env=testing
- ./vendor/bin/phpunit --coverage-text --coverage-cobertura php-coverage.xml
- php -d "extension=pdo_mysql" artisan migrate:fresh --seed --env=testing
- php -d "extension=pdo_mysql" ./vendor/bin/phpunit --coverage-text --coverage-cobertura php-coverage.xml
artifacts:
reports:
cobertura: php-coverage.xml