From f28ef5bea274303102d6e9302b4d15b9b3521901 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 4 Sep 2021 17:37:48 +0200 Subject: [PATCH] Cleanup build --- .github/workflows/build.yml | 4 ---- tests/makephar.sh | 1 + tests/waitPackagist.php | 4 ++++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6b08bdcdc..ed186e030 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,10 +26,6 @@ jobs: run: | echo "$HOME/.local/php/$PHP_VERSION" >> $GITHUB_PATH - - name: Wait for packagist - run: | - tests/waitPackagist.php - - name: Build env: API_ID: ${{ secrets.API_ID }} diff --git a/tests/makephar.sh b/tests/makephar.sh index 50ac3a930..0773971eb 100755 --- a/tests/makephar.sh +++ b/tests/makephar.sh @@ -63,6 +63,7 @@ echo '{ }' > composer.json composer update --no-cache composer dumpautoload --optimize +rm -rf vendor/phabel/phabel/tests* vendor/danog/madelineproto/docs cd .. branch="-$BRANCH" diff --git a/tests/waitPackagist.php b/tests/waitPackagist.php index a6bbd41bf..a36d858f5 100755 --- a/tests/waitPackagist.php +++ b/tests/waitPackagist.php @@ -7,6 +7,10 @@ $tag = \trim(\shell_exec("git tag --points-at HEAD")); echo "Waiting for commit $commit on branch $branch (tag $tag)...".PHP_EOL; +if (substr($tag, -5) === '.9999' || substr($tag, -5) === '.9998') { + die; +} + $branch = $tag ? $tag : "dev-$branch"; $cur = 0;