Skip to content

Commit 9d17f34

Browse files
authored
Merge pull request #180 from morganchen12/travis
restart builds that fail with exit code 65
2 parents b953da9 + 82803d0 commit 9d17f34

File tree

2 files changed

+30
-9
lines changed

2 files changed

+30
-9
lines changed

.travis.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,4 @@ before_install:
1010
- gem install xcpretty
1111
- pod install --repo-update
1212

13-
script: set -o pipefail && xcodebuild -workspace FirebaseUI.xcworkspace
14-
-scheme FirebaseUI
15-
-sdk iphonesimulator
16-
-destination 'platform=iOS Simulator,name=iPhone 7'
17-
build
18-
test
19-
ONLY_ACTIVE_ARCH=YES
20-
CODE_SIGNING_REQUIRED=NO
21-
| xcpretty
13+
script: ./test.sh

test.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
set -o pipefail && xcodebuild \
4+
-workspace FirebaseUI.xcworkspace \
5+
-scheme FirebaseUI \
6+
-sdk iphonesimulator \
7+
-destination 'platform=iOS Simulator,name=iPhone 7' \
8+
build \
9+
test \
10+
ONLY_ACTIVE_ARCH=YES \
11+
CODE_SIGNING_REQUIRED=NO\
12+
| xcpretty
13+
14+
RESULT=$?
15+
if [ $RESULT == 65 ]; then
16+
echo "xcodebuild exited with 65, retrying"
17+
set -o pipefail && xcodebuild \
18+
-workspace FirebaseUI.xcworkspace \
19+
-scheme FirebaseUI \
20+
-sdk iphonesimulator \
21+
-destination 'platform=iOS Simulator,name=iPhone 7' \
22+
build \
23+
test \
24+
ONLY_ACTIVE_ARCH=YES \
25+
CODE_SIGNING_REQUIRED=NO\
26+
| xcpretty
27+
else
28+
exit $RESULT
29+
fi

0 commit comments

Comments
 (0)