Merge branch '2.7' into 2.8
* 2.7: [travis] fix
This commit is contained in:
commit
949b6a4ce2
7
.github/travis.php
vendored
7
.github/travis.php
vendored
@ -4,6 +4,7 @@ if (4 > $_SERVER['argc']) {
|
|||||||
echo "Usage: branch version dir1 dir2 ... dirN\n";
|
echo "Usage: branch version dir1 dir2 ... dirN\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
chdir(dirname(__DIR__));
|
||||||
|
|
||||||
$dirs = $_SERVER['argv'];
|
$dirs = $_SERVER['argv'];
|
||||||
array_shift($dirs);
|
array_shift($dirs);
|
||||||
@ -30,15 +31,15 @@ foreach ($dirs as $dir) {
|
|||||||
|
|
||||||
$package->repositories = array(array(
|
$package->repositories = array(array(
|
||||||
'type' => 'composer',
|
'type' => 'composer',
|
||||||
'url' => 'file://'.__DIR__.'/',
|
'url' => 'file://'.dirname(__DIR__).'/',
|
||||||
));
|
));
|
||||||
$json = rtrim(json_encode(array('repositories' => $package->repositories), $flags), "\n}").','.substr($json, 1);
|
$json = rtrim(json_encode(array('repositories' => $package->repositories), $flags), "\n}").','.substr($json, 1);
|
||||||
file_put_contents($dir.'/composer.json', $json);
|
file_put_contents($dir.'/composer.json', $json);
|
||||||
passthru("cd $dir && tar -cf package.tar --exclude='package.tar' *");
|
passthru("cd $dir && tar -cf package.tar --exclude='package.tar' *");
|
||||||
|
|
||||||
$package->version = $version.'.x-dev';
|
$package->version = $version.'.999';
|
||||||
$package->dist['type'] = 'tar';
|
$package->dist['type'] = 'tar';
|
||||||
$package->dist['url'] = 'file://'.__DIR__."/$dir/package.tar";
|
$package->dist['url'] = 'file://'.dirname(__DIR__)."/$dir/package.tar";
|
||||||
|
|
||||||
$packages[$package->name][$package->version] = $package;
|
$packages[$package->name][$package->version] = $package;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user