diff options
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | Functions/Example/FirebaseFunctions.xcodeproj/xcshareddata/xcschemes/FirebaseFunctions_Tests.xcscheme | 28 | ||||
-rwxr-xr-x | scripts/build.sh | 9 | ||||
-rwxr-xr-x | scripts/if_changed.sh | 2 |
4 files changed, 39 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 178b318..c907873 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,7 @@ jobs: - bundle install - gem install xcpretty - ./scripts/if_changed.sh bundle exec pod install --project-directory=Example --repo-update + - ./scripts/if_changed.sh bundle exec pod install --project-directory=Functions/Example script: - ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM diff --git a/Functions/Example/FirebaseFunctions.xcodeproj/xcshareddata/xcschemes/FirebaseFunctions_Tests.xcscheme b/Functions/Example/FirebaseFunctions.xcodeproj/xcshareddata/xcschemes/FirebaseFunctions_Tests.xcscheme index 26063f9..2380cb8 100644 --- a/Functions/Example/FirebaseFunctions.xcodeproj/xcshareddata/xcschemes/FirebaseFunctions_Tests.xcscheme +++ b/Functions/Example/FirebaseFunctions.xcodeproj/xcshareddata/xcschemes/FirebaseFunctions_Tests.xcscheme @@ -23,6 +23,15 @@ </BuildableReference> </TestableReference> </Testables> + <MacroExpansion> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "6003F589195388D20070C39A" + BuildableName = "FirebaseFunctions_Example.app" + BlueprintName = "FirebaseFunctions_Example" + ReferencedContainer = "container:FirebaseFunctions.xcodeproj"> + </BuildableReference> + </MacroExpansion> <AdditionalOptions> </AdditionalOptions> </TestAction> @@ -36,6 +45,16 @@ debugDocumentVersioning = "YES" debugServiceExtension = "internal" allowLocationSimulation = "YES"> + <BuildableProductRunnable + runnableDebuggingMode = "0"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "6003F589195388D20070C39A" + BuildableName = "FirebaseFunctions_Example.app" + BlueprintName = "FirebaseFunctions_Example" + ReferencedContainer = "container:FirebaseFunctions.xcodeproj"> + </BuildableReference> + </BuildableProductRunnable> <AdditionalOptions> </AdditionalOptions> </LaunchAction> @@ -45,6 +64,15 @@ savedToolIdentifier = "" useCustomWorkingDirectory = "NO" debugDocumentVersioning = "YES"> + <MacroExpansion> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "6003F589195388D20070C39A" + BuildableName = "FirebaseFunctions_Example.app" + BlueprintName = "FirebaseFunctions_Example" + ReferencedContainer = "container:FirebaseFunctions.xcodeproj"> + </BuildableReference> + </MacroExpansion> </ProfileAction> <AnalyzeAction buildConfiguration = "Debug"> diff --git a/scripts/build.sh b/scripts/build.sh index df3faae..8841dc9 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -111,6 +111,15 @@ case "$product-$method-$platform" in "${xcb_flags[@]}" \ build \ test + + if [[ $platform == 'iOS' ]]; then + RunXcodebuild \ + -workspace 'Functions/Example/FirebaseFunctions.xcworkspace' \ + -scheme "FirebaseFunctions_Tests" \ + "${xcb_flags[@]}" \ + build \ + test + fi ;; Firestore-xcodebuild-iOS) diff --git a/scripts/if_changed.sh b/scripts/if_changed.sh index 616eebb..08ca96d 100755 --- a/scripts/if_changed.sh +++ b/scripts/if_changed.sh @@ -46,7 +46,7 @@ elif [[ -z "$TRAVIS_COMMIT_RANGE" ]]; then else case "$PROJECT-$METHOD" in Firebase-*) - check_changes '^(Firebase|Example)' + check_changes '^(Firebase|Functions|Example)' ;; Firestore-xcodebuild) |