From 0c1ef11bbc2cf575179ba3767abdfb2a1c5e366f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20B?= <stephane.bouvry@unicaen.fr>
Date: Wed, 16 Oct 2024 09:16:00 +0200
Subject: [PATCH] =?UTF-8?q?d=C3=A9placement=20du=20before=5Fscript=20pour?=
 =?UTF-8?q?=20les=20tests=20unitaires?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitlab-ci.yml | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c83739d..11ddada 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
-- 
GitLab