Przeglądaj źródła

Remove obsolete vendors.php

Olivier Paradis 13 lat temu
rodzic
commit
7bea4f8cf6
1 zmienionych plików z 0 dodań i 31 usunięć
  1. 0 31
      Tests/tests/vendors.php

+ 0 - 31
Tests/tests/vendors.php

@@ -1,31 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-set_time_limit(0);
-
-
-$vendorDir = __DIR__.'/../../vendor';
-if (!is_dir($vendorDir)) {
-  mkdir($vendorDir);
-}
-
-$deps = array(
-    array('symfony', 'git://github.com/symfony/symfony.git', isset($_SERVER['SYMFONY_VERSION']) ? $_SERVER['SYMFONY_VERSION'] : 'origin/2.0'),
-    array('Sonata/AdminBundle', 'git://github.com/sonata-project/SonataAdminBundle.git', 'origin/2.0'),
-    array('doctrine', 'git://github.com/doctrine/doctrine2.git', 'origin/master'),
-    array('doctrine-common', 'git://github.com/doctrine/common.git', 'origin/master'),
-    array('knpmenu', 'git://github.com/KnpLabs/KnpMenu.git', 'origin/master')
-);
-
-foreach ($deps as $dep) {
-    list($name, $url, $rev) = $dep;
-
-    echo "> Installing/Updating $name\n";
-
-    $installDir = $vendorDir.'/'.$name;
-    if (!is_dir($installDir)) {
-        system(sprintf('git clone %s %s', escapeshellarg($url), escapeshellarg($installDir)));
-    }
-
-    system(sprintf('cd %s && git fetch origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev)));
-}