Skip to content

Commit

Permalink
restart builds that fail with exit code 65
Browse files Browse the repository at this point in the history
  • Loading branch information
morganchen12 committed Oct 20, 2016
1 parent b953da9 commit 82803d0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
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

0 comments on commit 82803d0

Please sign in to comment.