Skip to content

Instantly share code, notes, and snippets.

@tgalopin
Last active August 29, 2015 14:28
Show Gist options
  • Save tgalopin/7c73922bc060b0685900 to your computer and use it in GitHub Desktop.
Save tgalopin/7c73922bc060b0685900 to your computer and use it in GitHub Desktop.
puli-test-all-installation
<?php
$repositories = [
'puli/cli',
'puli/composer-plugin',
'puli/discovery',
'puli/manager',
'puli/repository',
'puli/symfony-bridge',
'puli/twig-extension',
'puli/url-generator',
'webmozart/assert',
'webmozart/console',
'webmozart/expression',
'webmozart/glob',
'webmozart/key-value-store',
'webmozart/path-util',
];
$root = getcwd();
foreach ($repositories as $repository) {
echo "\nCloning " . $repository . "...\n========================================\n\n";
passthru('git clone git@github.com:'. $repository .'.git');
echo "\n\nInstalling " . $repository . "...\n========================================\n\n";
$parts = explode('/', $repository);
$directory = end($parts);
chdir($directory);
passthru('composer update');
chdir($root);
}
<?php
$repositories = [
'puli/cli',
'puli/composer-plugin',
'puli/discovery',
'puli/manager',
'puli/repository',
'puli/symfony-bridge',
'puli/twig-extension',
'puli/url-generator',
'webmozart/assert',
'webmozart/console',
'webmozart/expression',
'webmozart/glob',
'webmozart/key-value-store',
'webmozart/path-util',
];
$root = getcwd();
foreach ($repositories as $repository) {
$parts = explode('/', $repository);
$directory = end($parts);
chdir($directory);
echo "\nPulling " . $repository . "...\n========================================\n\n";
passthru('git pull');
echo "\n\nUpdating " . $repository . "...\n========================================\n\n";
passthru('composer update');
chdir($root);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment