3
print 'phpunit/phpunit: ';
5
$tag = @exec('git describe --tags 2>&1');
7
if (strpos($tag, '-') === false && strpos($tag, 'No names found') === false) {
10
$branch = @exec('git rev-parse --abbrev-ref HEAD');
11
$hash = @exec('git log -1 --format="%H"');
12
print $branch . '@' . $hash;
17
$lock = json_decode(file_get_contents(__DIR__ . '/../composer.lock'));
19
foreach ($lock->packages as $package) {
20
print $package->name . ': ' . $package->version;
22
if (!preg_match('/^[v= ]*(([0-9]+)(\\.([0-9]+)(\\.([0-9]+)(-([0-9]+))?(-?([a-zA-Z-+][a-zA-Z0-9\\.\\-:]*)?)?)?)?)$/', $package->version)) {
23
print '@' . $package->source->reference;