-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restart builds that fail with exit code 65
- Loading branch information
1 parent
b953da9
commit 82803d0
Showing
2 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o pipefail && xcodebuild \ | ||
-workspace FirebaseUI.xcworkspace \ | ||
-scheme FirebaseUI \ | ||
-sdk iphonesimulator \ | ||
-destination 'platform=iOS Simulator,name=iPhone 7' \ | ||
build \ | ||
test \ | ||
ONLY_ACTIVE_ARCH=YES \ | ||
CODE_SIGNING_REQUIRED=NO\ | ||
| xcpretty | ||
|
||
RESULT=$? | ||
if [ $RESULT == 65 ]; then | ||
echo "xcodebuild exited with 65, retrying" | ||
set -o pipefail && xcodebuild \ | ||
-workspace FirebaseUI.xcworkspace \ | ||
-scheme FirebaseUI \ | ||
-sdk iphonesimulator \ | ||
-destination 'platform=iOS Simulator,name=iPhone 7' \ | ||
build \ | ||
test \ | ||
ONLY_ACTIVE_ARCH=YES \ | ||
CODE_SIGNING_REQUIRED=NO\ | ||
| xcpretty | ||
else | ||
exit $RESULT | ||
fi |