1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 10:31:13 +01:00
This commit is contained in:
Daniil Gentili 2023-11-30 19:20:12 +01:00
parent 0ba0e39427
commit dd99299c07

View File

@ -2,18 +2,29 @@
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
export COMPOSER_PROCESS_TIMEOUT=100000
php tests/jit.php
touch /tmp/ci_status
composer update
exec 4</tmp/ci_status
flock 4
[ "$(cat /tmp/ci_status)" != "done" ]; then
apk add procps git unzip github-cli openssh
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
php tests/jit.php
composer update
echo done > /tmp/ci_status
fi
exec 4<&-
if [ "$1" == "docs" ]; then
rmdir docs