diff --git a/tests/makephar.sh b/tests/makephar.sh index 7929f5d9..740a4371 100755 --- a/tests/makephar.sh +++ b/tests/makephar.sh @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash -ex # Configure PHP_MAJOR_VERSION=$(php -r 'echo PHP_MAJOR_VERSION;') @@ -89,10 +89,6 @@ for f in $(find phar5 -type f -name '*.php'); do php -l $f;done branch="-$TRAVIS_BRANCH" cd $madelinePath -php tools/makephar.php $HOME/phar5 "madeline$php$branch.phar" $TRAVIS_COMMIT - -curl -s https://api.telegram.org/bot$BOT_TOKEN/sendDocument -F chat_id=101374607 -F document="@$TRAVIS_PHAR" - export TRAVIS_PHAR="madeline$php$branch.phar" export TEST_SECRET_CHAT=test @@ -100,6 +96,11 @@ export TEST_USERNAME=danogentili export TEST_DESTINATION_GROUPS='["@danogentili"]' export MTPROTO_SETTINGS='{"logger":{"logger_level":5}}' +php tools/makephar.php $HOME/phar5 "$TRAVIS_PHAR" $TRAVIS_COMMIT + +curl -s https://api.telegram.org/bot$BOT_TOKEN/sendDocument -F chat_id=101374607 -F document="@$TRAVIS_PHAR" + + tests/testing.php <