fix gitlab-ci configuration

This commit is contained in:
Julien Fastré 2023-12-14 18:14:02 +01:00
parent d6ff3f422f
commit 5030b67c5d
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -20,6 +20,7 @@ services:
# Set any variables we need
variables:
APP_ENV: test
GIT_DEPTH: 1
# Configure postgres environment variables (https://hub.docker.com/r/_/postgres/)
POSTGRES_USER: postgres
@ -88,7 +89,7 @@ rector_tests:
stage: Tests
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
script:
- tests/console cache:clear
- tests/console cache:clear --env=test
- bin/rector process --dry-run
cache:
paths:
@ -118,7 +119,7 @@ unit_tests:
- php tests/console doctrine:migrations:migrate -n --env=test
- php tests/console chill:db:sync-views --env=test
- php -d memory_limit=2G tests/console cache:clear --env=test
- php -d memory_limit=3G tests/console doctrine:fixtures:load -n
- php -d memory_limit=3G tests/console doctrine:fixtures:load -n --env=test
- php -d memory_limit=4G bin/phpunit --colors=never --exclude-group dbIntensive
artifacts:
expire_in: 30 min