Skip to content

Run Functions Unit Tests on travis #954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2018
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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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">
Expand Down
9 changes: 9 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion scripts/if_changed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down