Skip to content
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