mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 21:14:43 +01:00
26 lines
610 B
Bash
Executable File
26 lines
610 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
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
|
|
|
|
rmdir docs
|
|
curl -L https://github.com/danog/MadelineProtoDocs/archive/refs/heads/master.tar.gz | tar -xz
|
|
mv MadelineProtoDocs-master/ docs
|
|
|
|
git submodule init schemas
|
|
git submodule update schemas
|
|
|
|
export COMPOSER_PROCESS_TIMEOUT=10000
|
|
|
|
composer update
|
|
composer build
|
|
|
|
if [ "$(git diff)" != "" ]; then echo "Please run composer build!"; exit 1; fi
|
|
|
|
php tests/jit.php |