@@ -28,6 +28,10 @@ unit:
image: $CI_REGISTRY_IMAGE:latest
stage: test
+ before_script:
+ - composer config -g cache-dir .composer-cache
+ - composer install --prefer-dist --no-progress --no-interaction
+
script:
- php vendor/phpunit/phpunit/phpunit --configuration phpunit.xml.dist --colors=never --no-interaction --testsuite=unit
#- php vendor/phpunit/phpunit/phpunit --configuration phpunit.xml.dist --colors=never --no-interaction --no-coverage --testsuite=application
@@ -6,8 +6,5 @@ if [ ! -z "$SSH_PRIVATE_KEY" ]; then
echo "$SSH_PRIVATE_KEY" | ssh-add -
fi
-composer config -g cache-dir .composer-cache
-composer install --prefer-dist --no-progress --no-interaction
-
# Exécute la commande passée au conteneur
exec "$@"