-
Notifications
You must be signed in to change notification settings - Fork 473
/
local_test.sh
executable file
·29 lines (23 loc) · 753 Bytes
/
local_test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
set -euxo pipefail
EXIT_STATUS=0
schemes=( "FirebaseAnonymousAuthUI" "FirebaseAuthUI" "FirebaseDatabaseUI" \
"FirebaseEmailAuthUI" "FirebaseFacebookAuthUI" "FirebaseFirestoreUI" \
"FirebaseGoogleAuthUI" "FirebaseOAuthUI" "FirebasePhoneAuthUI" "FirebaseStorageUI" )
bundle exec pod repo update;
for ((i=0; i<${#schemes[*]}; i++));
do
cd ${schemes[i]};
bundle exec pod install;
(xcodebuild \
-workspace "${schemes[i]}.xcworkspace" \
-scheme "${schemes[i]}" \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,OS=latest,name=iPhone 11 Pro' \
clean build test \
ONLY_ACTIVE_ARCH=YES \
| xcpretty) || EXIT_STATUS=$?;
bundle exec pod deintegrate;
cd ..;
done
exit $EXIT_STATUS