Allow travis tests
This commit is contained in:
parent
b65beb3ece
commit
31bbe44735
@ -25,7 +25,7 @@ $p->addFromString('.git/refs/heads/master', $argv[3]);
|
||||
|
||||
$p->setStub('<?php
|
||||
$backtrace = debug_backtrace();
|
||||
if (!isset($backtrace[0]["file"]) || !in_array(basename($backtrace[0]["file"]), ["madeline.php", "phar.php"])) {
|
||||
if (!isset($backtrace[0]["file"]) || !in_array(basename($backtrace[0]["file"]), ["madeline.php", "phar.php", "testing.php"])) {
|
||||
die("madeline.phar cannot be required manually: use the automatic loader, instead: https://docs.madelineproto.xyz/docs/INSTALLATION.html#simple".PHP_EOL);
|
||||
}
|
||||
if (isset($backtrace[1]["file"])) {
|
||||
|
@ -56,7 +56,6 @@ php makephar.php $HOME/phar5 "madeline$branch.phar" $TRAVIS_COMMIT
|
||||
|
||||
export TRAVIS_PHAR="madeline$branch.phar"
|
||||
export TEST_SECRET_CHAT=test
|
||||
export MTPROTO_SETTINGS='{"app_info":{"api_id":25628,"api_hash":"1fe17cda7d355166cdaa71f04122873c"}}'
|
||||
export TEST_USERNAME=danogentili
|
||||
export TEST_DESTINATION_GROUPS='["@pwrtelegramgroupita"]'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user