Tools: Disable build for macOS on pull requests due to electron-builder bug

pull/1912/head
Laurent Cozic 2019-09-29 14:46:05 +01:00
parent f37ac8b5de
commit ae7f0e8ffb
1 changed files with 10 additions and 0 deletions

View File

@ -67,6 +67,16 @@ script:
exit $testResult
fi
# Find out if we should run the build or not. Electron-builder gets stuck when
# builing PRs so we disable it in this case. The Linux build should provide
# enough info if the app builds or not.
# https://github.com/electron-userland/electron-builder/issues/4263
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
exit 0
fi
fi
# Prepare the Electron app and build it
cd ../ElectronClient/app
rsync -aP --delete ../../ReactNativeClient/lib/ lib/