From 542b6ccc83e233d09e155a0bd041f113ca581834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 17 Feb 2023 22:13:44 +0100 Subject: [PATCH] ci: use embedded composer in docker image instead of reinstalling it --- .gitlab-ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 952533591..cea6bda87 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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/