From edfd38774308a455e477ab660f71827212b1abda Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 4 Sep 2019 22:16:35 +0200 Subject: [PATCH] Update travis builder --- tests/makephar.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/makephar.sh b/tests/makephar.sh index fe838667..a021eeb7 100755 --- a/tests/makephar.sh +++ b/tests/makephar.sh @@ -120,6 +120,14 @@ chmod 600 madeline_rsa ssh-add madeline_rsa git clone git@github.com:danog/MadelineProtoPhar cd MadelineProtoPhar + +[ "$php" == "70" ] && { + while [ "$(cat release$branch)" != "$TRAVIS_COMMIT" ]; do sleep 1; git pull; done +} +[ "$php" == "5" ] && { + while [ "$(cat release70$branch)" != "$TRAVIS_COMMIT" ]; do sleep 1; git pull; done +} + cp "../madeline$php$branch.phar" . cp ../phar.php ../mtproxyd . echo -n $TRAVIS_COMMIT > release$php$branch @@ -131,7 +139,8 @@ echo "$TRAVIS_COMMIT_MESSAGE" | grep -i "subrelease" && { git add -A git commit -am "Release $TRAVIS_BRANCH - $TRAVIS_COMMIT_MESSAGE" -until git push origin master; do git pull origin master; done +git push origin master + cd .. echo "$TRAVIS_COMMIT_MESSAGE" | grep "Apply fixes from StyleCI" && exit