MadelineProto/tests/waitPackagist.php

11 lines
326 B
PHP
Executable File

#!/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);
}