From 55f6c5a7e1eb38f6c226cddd8a7a35ca1ba2ee4f Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Sat, 4 Sep 2021 13:50:11 +0200 Subject: [PATCH] Configure env file during php-build --- .env.testing | 15 +++++++++++++++ .gitlab-ci.yml | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 .env.testing diff --git a/.env.testing b/.env.testing new file mode 100644 index 0000000..b415448 --- /dev/null +++ b/.env.testing @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index acd1037..274ad65 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,8 +13,11 @@ php-build-job: image: composer:2 script: - composer install + - cp .env.testing .env + - php artisan key:generate artifacts: paths: + - .env - vendor/ php-test-job: