From 02b487191c2a3de8fa1a6d9f7b1b4c135c3697ed Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Sat, 4 Sep 2021 14:33:10 +0200 Subject: [PATCH] Artisan undocumented functionality seems to be the cause... --- .gitlab-ci.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a3d66b7..afd0025 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,17 +13,10 @@ php-build-job: image: composer:2 script: - composer install - - cat .env || true - - cat .env.testing || true - - cp .env.testing .env - - cat .env || true - - cat .env.testing || true - php artisan key:generate - - cat .env || true - - cat .env.testing || true artifacts: paths: - - .env + - .env.testing - vendor/ cache: paths: @@ -42,15 +35,12 @@ php-test-job: - pecl install xdebug - 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 - - cp -f .env .env.testing - export DB_CONNECTION=mysql - export DB_HOST=mysql - export DB_PORT=3306 - export DB_DATABASE="$MYSQL_DATABASE" - export DB_USERNAME=root - export DB_PASSWORD="$MYSQL_ROOT_PASSWORD" - - cat .env || true - - cat .env.testing || true - php artisan test --coverage-cobertura code-coverage.xml artifacts: reports: