mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 19:04:40 +01:00
Fixup
This commit is contained in:
parent
dd99299c07
commit
66c4840319
@ -48,7 +48,7 @@ steps:
|
||||
- apk add bash
|
||||
- tests/test.sh phpunit-light
|
||||
|
||||
docs:
|
||||
cs:
|
||||
group: test
|
||||
image: danog/madelineproto:next
|
||||
when:
|
||||
@ -58,7 +58,7 @@ steps:
|
||||
- push
|
||||
commands:
|
||||
- apk add bash
|
||||
- tests/test.sh docs
|
||||
- tests/test.sh cs
|
||||
|
||||
psalm:
|
||||
group: test
|
||||
@ -72,18 +72,6 @@ steps:
|
||||
- apk add bash
|
||||
- tests/test.sh psalm
|
||||
|
||||
cs:
|
||||
group: test
|
||||
image: danog/madelineproto:next
|
||||
when:
|
||||
event:
|
||||
- pull_request
|
||||
- tag
|
||||
- push
|
||||
commands:
|
||||
- apk add bash
|
||||
- tests/test.sh cs
|
||||
|
||||
handshake:
|
||||
group: test
|
||||
image: danog/madelineproto:next
|
||||
|
@ -9,7 +9,7 @@ touch /tmp/ci_status
|
||||
exec 4</tmp/ci_status
|
||||
flock 4
|
||||
|
||||
[ "$(cat /tmp/ci_status)" != "done" ]; then
|
||||
if [ "$(cat /tmp/ci_status)" != "done" ]; then
|
||||
apk add procps git unzip github-cli openssh
|
||||
|
||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
@ -26,7 +26,9 @@ fi
|
||||
|
||||
exec 4<&-
|
||||
|
||||
if [ "$1" == "docs" ]; then
|
||||
if [ "$1" == "cs" ]; then
|
||||
composer psalm
|
||||
|
||||
rmdir docs
|
||||
curl -L https://github.com/danog/MadelineProtoDocs/archive/refs/heads/master.tar.gz | tar -xz
|
||||
mv MadelineProtoDocs-master/ docs
|
||||
@ -43,20 +45,6 @@ if [ "$1" == "docs" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" == "psalm" ]; then
|
||||
composer psalm
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" == "cs" ]; then
|
||||
composer cs-fix
|
||||
|
||||
if [ "$(git diff)" != "" ]; then echo "Please run composer cs-fix!"; exit 1; fi
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" == "handshake" ]; then
|
||||
php tests/handshake.php
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user