1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 08:39:00 +01:00

Run unit tests
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Daniil Gentili 2022-11-07 15:00:06 +01:00
parent 8c90ecdaec
commit 81846e9b09
3 changed files with 9 additions and 9 deletions

2
docs

@ -1 +1 @@
Subproject commit 976e62c127b5f0475a06d987cd221d1d435a4e61
Subproject commit 92a825cba0e9e8802d2ad646e45dbe37a95084bc

@ -1 +1 @@
Subproject commit 2ff0985d45980eda06a6e4c1aafd5081246048f8
Subproject commit 89ec0d2f2bcd64d579bdb41a1bfee2204d728dac

View File

@ -22,6 +22,11 @@ if [ "$TAG" == "" ]; then
git tag "$TAG"
fi
export TEST_SECRET_CHAT=test
export TEST_USERNAME=danogentili
export TEST_DESTINATION_GROUPS='["@danogentili"]'
export MTPROTO_SETTINGS='{"logger":{"logger_level":5}}'
echo "PHP: $php"
echo "Branch: $BRANCH"
echo "Commit: $COMMIT"
@ -38,8 +43,8 @@ k()
k
rm -f madeline.phar testing.madeline*
php8.0 $(which composer) update
#php8.0 vendor/bin/phpunit
composer update
vendor/bin/phpunit
COMPOSER_TAG="$TAG"
@ -81,11 +86,6 @@ cd ..
branch="-$BRANCH"
cd $madelinePath
export TEST_SECRET_CHAT=test
export TEST_USERNAME=danogentili
export TEST_DESTINATION_GROUPS='["@danogentili"]'
export MTPROTO_SETTINGS='{"logger":{"logger_level":5}}'
db()
{
php tests/db.php $1