Olivier Massot 7 months ago
parent
commit
945e0b75bc
2 changed files with 4 additions and 3 deletions
  1. 4 0
      .gitlab-ci.yml
  2. 0 3
      docker/entrypoint.sh

+ 4 - 0
.gitlab-ci.yml

@@ -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

+ 0 - 3
docker/entrypoint.sh

@@ -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 "$@"