Apply the env vars to the .env.testing file
This commit is contained in:
parent
ad21930ca0
commit
d9f95f1de9
@ -53,12 +53,12 @@ test-job:
|
|||||||
- pecl install xdebug
|
- pecl install xdebug
|
||||||
- echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
|
- echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
- echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/xdebug.ini
|
- echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
- export DB_CONNECTION=mysql
|
- echo "DB_CONNECTION=mysql" >> .env.testing
|
||||||
- export DB_HOST=mysql
|
- echo "DB_HOST=mysql" >> .env.testing
|
||||||
- export DB_PORT=3306
|
- echo "DB_PORT=3306" >> .env.testing
|
||||||
- export DB_DATABASE="$MYSQL_DATABASE"
|
- echo "DB_DATABASE=\"$MYSQL_DATABASE\"" >> .env.testing
|
||||||
- export DB_USERNAME=root
|
- echo "DB_USERNAME=root" >> .env.testing
|
||||||
- export DB_PASSWORD="$MYSQL_ROOT_PASSWORD"
|
- echo "DB_PASSWORD=\"$MYSQL_ROOT_PASSWORD\"" >> .env.testing
|
||||||
- php artisan migrate:fresh --seed --env=.env.testing
|
- php artisan migrate:fresh --seed --env=.env.testing
|
||||||
- ./vendor/bin/phpunit --coverage-text --coverage-cobertura php-coverage.xml
|
- ./vendor/bin/phpunit --coverage-text --coverage-cobertura php-coverage.xml
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user