mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Try travis_wait alternative
This commit is contained in:
parent
5ca5b4561e
commit
95f29a3d19
2 changed files with 16 additions and 2 deletions
|
@ -6,7 +6,21 @@ if [ "$FLATPAK" ]; then
|
||||||
mkdir -p build-flatpak
|
mkdir -p build-flatpak
|
||||||
cd build-flatpak
|
cd build-flatpak
|
||||||
|
|
||||||
flatpak-builder --ccache --repo=repo --subject="Build of Nheko ${VERSION} `date`" app ../io.github.NhekoReborn.Nheko.json
|
flatpak-builder --ccache --repo=repo --subject="Build of Nheko ${VERSION} `date`" app ../io.github.NhekoReborn.Nheko.json &
|
||||||
|
|
||||||
|
# to prevent flatpak builder from timing out on arm, run it in the background and print something every minute for up to 30 minutes.
|
||||||
|
minutes=0
|
||||||
|
limit=30
|
||||||
|
while kill -0 $! >/dev/null 2>&1; do
|
||||||
|
if [ $minutes == $limit ]; then
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
|
||||||
|
minutes=$((minutes+1))
|
||||||
|
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
|
||||||
flatpak build-bundle repo nheko-${VERSION}-${ARCH}.flatpak io.github.NhekoReborn.Nheko master
|
flatpak build-bundle repo nheko-${VERSION}-${ARCH}.flatpak io.github.NhekoReborn.Nheko master
|
||||||
|
|
||||||
mkdir ../artifacts
|
mkdir ../artifacts
|
||||||
|
|
|
@ -134,7 +134,7 @@ install:
|
||||||
- export PATH=/usr/local/bin:${PATH}
|
- export PATH=/usr/local/bin:${PATH}
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- travis_wait ./.ci/script.sh
|
- ./.ci/script.sh
|
||||||
- sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true
|
- sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true
|
||||||
- cp ./.ci/bintray-release.json .
|
- cp ./.ci/bintray-release.json .
|
||||||
deploy:
|
deploy:
|
||||||
|
|
Loading…
Reference in a new issue