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: