1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 19:04:40 +01:00

Account for shared workspace

This commit is contained in:
Daniil Gentili 2023-11-30 19:38:26 +01:00
parent fd9dc60d24
commit 07031decd7
2 changed files with 19 additions and 9 deletions

View File

@ -4,13 +4,4 @@ set -ex
export COMPOSER_PROCESS_TIMEOUT=100000 export COMPOSER_PROCESS_TIMEOUT=100000
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 composer update

View File

@ -4,6 +4,19 @@ set -ex
export COMPOSER_PROCESS_TIMEOUT=100000 export COMPOSER_PROCESS_TIMEOUT=100000
apk add procps git unzip github-cli openssh
cd /tmp
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
cd $OLDPWD
php tests/jit.php
php tests/lock_setup.php php tests/lock_setup.php
if [ "$1" == "cs" ]; then if [ "$1" == "cs" ]; then
@ -25,6 +38,12 @@ if [ "$1" == "cs" ]; then
exit 0 exit 0
fi fi
if [ "$1" == "psalm" ]; then
composer psalm
exit 0
fi
if [ "$1" == "handshake" ]; then if [ "$1" == "handshake" ]; then
php tests/handshake.php php tests/handshake.php
exit 0 exit 0