diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c83739d2604817dacf3efab594eecf46b26de660..11ddadaeca63d2815fab8e3a0983ea8745f16468 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,15 +14,14 @@ cache:
   paths:
     - vendor/
 
-before_script:
-  # Met à jour Composer et installe les dépendances
-  - apt-get update -yqq
-  - apt-get install git unzip -yqq
-  - curl -sS https://getcomposer.org/installer | php
-  - php composer.phar install --prefer-dist --no-progress --no-interaction
-
 test:
   stage: test
+  before_script:
+    # Met à jour Composer et installe les dépendances
+    - apt-get update -yqq
+    - apt-get install git unzip -yqq
+    - curl -sS https://getcomposer.org/installer | php
+    - php composer.phar install --prefer-dist --no-progress --no-interaction
   script:
     # Exécute les tests PHPUnit
     - ./vendor/bin/phpunit --colors=always