Skip to content

restart builds that fail with exit code 65 #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,4 @@ before_install:
- gem install xcpretty
- pod install --repo-update

script: 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
script: ./test.sh
29 changes: 29 additions & 0 deletions test.sh
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