Skip to content

Commit

Permalink
make travis not to kill a package building job on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiry committed Feb 6, 2019
1 parent f351188 commit e573903
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/travis-build-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ unzip $APP_GITHUB_ARTIFACT_WEBCLIENTS
yarn app:dist

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# see https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-353342526
# output something every 9 minutes (540 seconds) to prevent Travis killing the job
while sleep 540; do echo "=====[ $SECONDS seconds still running ]====="; done &
yarn electron-builder:publish:x64
# killing background sleep loop
kill %1
fi

if [ "$TRAVIS_OS_NAME" == "linux" ]; then
Expand Down

0 comments on commit e573903

Please sign in to comment.