Configure env file during php-build

This commit is contained in:
Daniel_I_Am 2021-09-04 13:50:11 +02:00
parent 8858cb7a1e
commit 55f6c5a7e1
2 changed files with 18 additions and 0 deletions

15
.env.testing Normal file
View File

@ -0,0 +1,15 @@
APP_NAME=Laravel
APP_ENV=testing
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_LEVEL=debug
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

View File

@ -13,8 +13,11 @@ php-build-job:
image: composer:2 image: composer:2
script: script:
- composer install - composer install
- cp .env.testing .env
- php artisan key:generate
artifacts: artifacts:
paths: paths:
- .env
- vendor/ - vendor/
php-test-job: php-test-job: