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

22 lines
552 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-09-01 14:56:43 +02:00
composer update
composer build
2023-09-01 15:04:04 +02:00
if [ "$(git diff)" != "" ]; then echo "Please run composer build!"; exit 1; fi