From 8d444abfecf97b6e3df82faf3cfe26b83a8f9b7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Laurent=20L=C3=A9cluse?= <laurent.lecluse@unicaen.fr>
Date: Wed, 4 May 2022 15:31:39 +0200
Subject: [PATCH] =?UTF-8?q?On=20ignore=20les=20tests=20de=20d=C3=A9pendanc?=
 =?UTF-8?q?es=20si=20on=20installe=20une=20branche=20de=20OSE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 bin/install | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/bin/install b/bin/install
index 1654839599..7bca2b7f3c 100644
--- a/bin/install
+++ b/bin/install
@@ -114,7 +114,15 @@ if ($intVersion > 0 && $intVersion < 18) {
 
 // Récupération des dépendances
 $c->println("\nChargement des dépendances à l'aide de Composer", $c::COLOR_LIGHT_CYAN);
-$c->passthru("cd $osedir;php composer.phar install --optimize-autoloader");
+
+if ($intVersion === 0) {
+    // à partir d'une branche, on ignore les prérequis pour composer, afin de tester
+    $c->passthru("cd $osedir;php composer.phar install --optimize-autoloader --ignore-platform-reqs");
+} else {
+    // à partir de la v18, et toutes les branches
+    $c->passthru("cd $osedir;php composer.phar install --optimize-autoloader");
+}
+
 
 if ($intVersion > 0 && $intVersion < 18) {
     // Création des liens symboliques
-- 
GitLab