ci: use embedded composer in docker image instead of reinstalling it

This commit is contained in:
Julien Fastré 2023-02-17 22:13:44 +01:00
parent 610f129cae
commit 542b6ccc83
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -39,10 +39,9 @@ build:
stage: Composer install
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
before_script:
- curl -sS https://getcomposer.org/installer | php
- php -d memory_limit=2G composer.phar config -g cache-dir "$(pwd)/.cache"
- composer config -g cache-dir "$(pwd)/.cache"
script:
- php -d memory_limit=2G composer.phar install --optimize-autoloader --no-ansi --no-interaction --no-progress
- composer install --optimize-autoloader --no-ansi --no-interaction --no-progress
cache:
paths:
- .cache/
@ -57,7 +56,6 @@ code_style:
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:php82
script:
- php-cs-fixer fix --dry-run -v --show-progress=none
- bin/grumphp run --tasks=phpcsfixer
cache:
paths:
- .cache/