MadelineProto/tests/waitPackagist.php

11 lines
326 B
PHP
Raw Normal View History

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