1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:19:00 +01:00
MadelineProto/tests/waitPackagist.php
2019-12-28 01:02:50 +01:00

14 lines
390 B
PHP
Executable File

#!/usr/bin/env php
<?php
$tag = \getenv('TRAVIS_TAG');
$branch = $tag ? $tag : "dev-".\getenv("TRAVIS_BRANCH");
while (true) {
$json = \json_decode(\file_get_contents('https://repo.packagist.org/p/danog/madelineproto.json'), true);
\sleep(1);
if ($json["packages"]["danog/madelineproto"][$branch]["source"]["reference"] === \getenv('TRAVIS_COMMIT')) {
return;
}
}