Allow travis tests

This commit is contained in:
Daniil Gentili 2019-06-16 21:25:03 +02:00
parent b65beb3ece
commit 31bbe44735
2 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,7 @@ $p->addFromString('.git/refs/heads/master', $argv[3]);
$p->setStub('<?php $p->setStub('<?php
$backtrace = debug_backtrace(); $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); 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"])) { if (isset($backtrace[1]["file"])) {

View File

@ -56,7 +56,6 @@ php makephar.php $HOME/phar5 "madeline$branch.phar" $TRAVIS_COMMIT
export TRAVIS_PHAR="madeline$branch.phar" export TRAVIS_PHAR="madeline$branch.phar"
export TEST_SECRET_CHAT=test export TEST_SECRET_CHAT=test
export MTPROTO_SETTINGS='{"app_info":{"api_id":25628,"api_hash":"1fe17cda7d355166cdaa71f04122873c"}}'
export TEST_USERNAME=danogentili export TEST_USERNAME=danogentili
export TEST_DESTINATION_GROUPS='["@pwrtelegramgroupita"]' export TEST_DESTINATION_GROUPS='["@pwrtelegramgroupita"]'