浏览代码

Add branch alias to composer.json file

Thomas Rabaix 12 年之前
父节点
当前提交
c93f7921ff
共有 2 个文件被更改,包括 7 次插入31 次删除
  1. 0 29
      Tests/tests/vendors.php
  2. 7 2
      composer.json

+ 0 - 29
Tests/tests/vendors.php

@@ -1,29 +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/master'),
-    array('knpmenu', 'git://github.com/KnpLabs/KnpMenu.git', 'origin/master'),
-    array('twig', 'git://github.com/fabpot/Twig.git', '1.6.2'),
-    array('exporter', 'git://github.com/sonata-project/exporter.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 --quiet %s %s', escapeshellarg($url), escapeshellarg($installDir)));
-    }
-
-    system(sprintf('cd %s && git fetch origin && git reset --hard %s', escapeshellarg($installDir), escapeshellarg($rev)));
-}

+ 7 - 2
composer.json

@@ -16,7 +16,6 @@
             "homepage": "https://github.com/sonata-project/SonataAdminBundle/contributors"
         }
     ],
-    "minimum-stability": "dev",
     "require": {
         "knplabs/knp-menu-bundle": "1.1.*",
         "sonata-project/jquery-bundle": "dev-master",
@@ -33,5 +32,11 @@
     "autoload": {
         "psr-0": { "Sonata\\AdminBundle": "" }
     },
-    "target-dir": "Sonata/AdminBundle"
+    "target-dir": "Sonata/AdminBundle",
+    "minimum-stability": "dev",
+    "extra": {
+        "branch-alias": {
+            "dev-master": "2.1-dev"
+        }
+    }
 }