diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2018-04-09 09:11:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 09:11:21 -0700 |
commit | 42bc113754d2f9e2f0f6cf552916ae76149e717d (patch) | |
tree | 579d70312fe376cb657ea8c4dd5d96cc92b616f2 /scripts/build.sh | |
parent | 21a6e1f930936eae1bca743430347288fa5e39c8 (diff) |
Travis static library testing (#1047)
* Add Objective C example app for Messaging
* Travis static library testing
* static lib build fixes
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-x | scripts/build.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index 8841dc9..827fc14 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -119,6 +119,33 @@ case "$product-$method-$platform" in "${xcb_flags[@]}" \ build \ test + + # Test iOS Objective-C static library build + cd Example + sed -i -e 's/use_frameworks/\#use_frameworks/' Podfile + pod update --no-repo-update + # Workarounds for https://github.com/CocoaPods/CocoaPods/issues/7592. + # Remove when updating to CocoaPods 1.5.1 + sed -i -e 's/-l"FirebaseMessaging"//' "Pods/Target Support Files/Pods-Messaging_Tests_iOS/Pods-Messaging_Tests_iOS.debug.xcconfig" + sed -i -e 's/-l"FirebaseAuth-iOS" -l"FirebaseCore-iOS"//' "Pods/Target Support Files/Pods-Auth_Tests_iOS/Pods-Auth_Tests_iOS.debug.xcconfig" + cd .. + RunXcodebuild \ + -workspace 'Example/Firebase.xcworkspace' \ + -scheme "AllUnitTests_$platform" \ + "${xcb_flags[@]}" \ + build \ + test + + cd Functions/Example + sed -i -e 's/use_frameworks/\#use_frameworks/' Podfile + pod update --no-repo-update + cd ../.. + RunXcodebuild \ + -workspace 'Functions/Example/FirebaseFunctions.xcworkspace' \ + -scheme "FirebaseFunctions_Tests" \ + "${xcb_flags[@]}" \ + build \ + test fi ;; |