1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-12 14:27:23 +01:00
MadelineProto/tests/test.sh

26 lines
610 B
Bash
Raw Normal View History

2023-09-01 17:14:30 +02:00
#!/bin/bash
set -ex
2023-09-01 14:56:43 +02:00
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
apk add procps git unzip github-cli openssh
2023-09-01 15:31:26 +02:00
rmdir docs
2023-09-01 15:14:28 +02:00
curl -L https://github.com/danog/MadelineProtoDocs/archive/refs/heads/master.tar.gz | tar -xz
mv MadelineProtoDocs-master/ docs
2023-09-01 15:16:47 +02:00
git submodule init schemas
git submodule update schemas
2023-10-21 17:23:17 +02:00
export COMPOSER_PROCESS_TIMEOUT=10000
2023-09-01 14:56:43 +02:00
composer update
composer build
2023-10-21 17:23:17 +02:00
if [ "$(git diff)" != "" ]; then echo "Please run composer build!"; exit 1; fi
2023-11-19 19:14:51 +01:00
php tests/jit.php