Skip to content

Commit 8b15061

Browse files
committed
remove the flag, adding scheme for enterprise testing
1 parent 41369e3 commit 8b15061

File tree

5 files changed

+349
-1
lines changed

5 files changed

+349
-1
lines changed

.github/workflows/firestore.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,35 @@ jobs:
377377

378378
- name: Build and test
379379
run: |
380-
BACKEND_EDITION="enterprise" scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ matrix.target }} xcodebuild
380+
scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ matrix.target }} xcodebuild
381+
382+
xcodebuild_enterprise:
383+
needs: check
384+
# Either a scheduled run from public repo, or a pull request with firestore changes.
385+
if: |
386+
(github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
387+
(github.event_name == 'pull_request')
388+
runs-on: macos-15
389+
390+
strategy:
391+
matrix:
392+
target: [iOS, macOS, tvOS]
393+
394+
steps:
395+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
396+
397+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
398+
399+
- name: Select Xcode
400+
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
401+
402+
# 'FirestoreEnterprise' is used as product name for `build.sh` to select the enterprise build variant. `install_prereqs.sh` does not require this distinction, so 'Firestore' is used.
403+
- name: Setup build
404+
run: scripts/install_prereqs.sh Firestore ${{ matrix.target }} xcodebuild
405+
406+
- name: Build and test
407+
run: |
408+
scripts/third_party/travis/retry.sh scripts/build.sh FirestoreEnterprise ${{ matrix.target }} xcodebuild
381409
382410
pod_lib_lint:
383411
needs: check
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1010"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "DE03B2941F2149D600A30B9C"
18+
BuildableName = "Firestore_IntegrationTests_iOS.xctest"
19+
BlueprintName = "Firestore_IntegrationTests_iOS"
20+
ReferencedContainer = "container:Firestore.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
enableASanStackUseAfterReturn = "YES">
31+
<MacroExpansion>
32+
<BuildableReference
33+
BuildableIdentifier = "primary"
34+
BlueprintIdentifier = "DE03B2941F2149D600A30B9C"
35+
BuildableName = "Firestore_IntegrationTests_iOS.xctest"
36+
BlueprintName = "Firestore_IntegrationTests_iOS"
37+
ReferencedContainer = "container:Firestore.xcodeproj">
38+
</BuildableReference>
39+
</MacroExpansion>
40+
<Testables>
41+
<TestableReference
42+
skipped = "NO">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "DE03B2941F2149D600A30B9C"
46+
BuildableName = "Firestore_IntegrationTests_iOS.xctest"
47+
BlueprintName = "Firestore_IntegrationTests_iOS"
48+
ReferencedContainer = "container:Firestore.xcodeproj">
49+
</BuildableReference>
50+
</TestableReference>
51+
</Testables>
52+
</TestAction>
53+
<LaunchAction
54+
buildConfiguration = "Debug"
55+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
56+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57+
launchStyle = "0"
58+
useCustomWorkingDirectory = "NO"
59+
ignoresPersistentStateOnLaunch = "NO"
60+
debugDocumentVersioning = "YES"
61+
debugServiceExtension = "internal"
62+
allowLocationSimulation = "YES">
63+
<MacroExpansion>
64+
<BuildableReference
65+
BuildableIdentifier = "primary"
66+
BlueprintIdentifier = "DE03B2941F2149D600A30B9C"
67+
BuildableName = "Firestore_IntegrationTests_iOS.xctest"
68+
BlueprintName = "Firestore_IntegrationTests_iOS"
69+
ReferencedContainer = "container:Firestore.xcodeproj">
70+
</BuildableReference>
71+
</MacroExpansion>
72+
<EnvironmentVariables>
73+
<EnvironmentVariable
74+
key = "BACKEND_EDITION"
75+
value = "enterprise"
76+
isEnabled = "YES">
77+
</EnvironmentVariable>
78+
</EnvironmentVariables>
79+
</LaunchAction>
80+
<ProfileAction
81+
buildConfiguration = "Release"
82+
shouldUseLaunchSchemeArgsEnv = "YES"
83+
savedToolIdentifier = ""
84+
useCustomWorkingDirectory = "NO"
85+
debugDocumentVersioning = "YES">
86+
<MacroExpansion>
87+
<BuildableReference
88+
BuildableIdentifier = "primary"
89+
BlueprintIdentifier = "DE03B2941F2149D600A30B9C"
90+
BuildableName = "Firestore_IntegrationTests_iOS.xctest"
91+
BlueprintName = "Firestore_IntegrationTests_iOS"
92+
ReferencedContainer = "container:Firestore.xcodeproj">
93+
</BuildableReference>
94+
</MacroExpansion>
95+
</ProfileAction>
96+
<AnalyzeAction
97+
buildConfiguration = "Debug">
98+
</AnalyzeAction>
99+
<ArchiveAction
100+
buildConfiguration = "Release"
101+
revealArchiveInOrganizer = "YES">
102+
</ArchiveAction>
103+
</Scheme>
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1010"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "54B8E4A9224BDC4100930F18"
18+
BuildableName = "Firestore_IntegrationTests_macOS.xctest"
19+
BlueprintName = "Firestore_IntegrationTests_macOS"
20+
ReferencedContainer = "container:Firestore.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "54B8E4A9224BDC4100930F18"
34+
BuildableName = "Firestore_IntegrationTests_macOS.xctest"
35+
BlueprintName = "Firestore_IntegrationTests_macOS"
36+
ReferencedContainer = "container:Firestore.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
39+
<Testables>
40+
<TestableReference
41+
skipped = "NO">
42+
<BuildableReference
43+
BuildableIdentifier = "primary"
44+
BlueprintIdentifier = "54B8E4A9224BDC4100930F18"
45+
BuildableName = "Firestore_IntegrationTests_macOS.xctest"
46+
BlueprintName = "Firestore_IntegrationTests_macOS"
47+
ReferencedContainer = "container:Firestore.xcodeproj">
48+
</BuildableReference>
49+
</TestableReference>
50+
</Testables>
51+
</TestAction>
52+
<LaunchAction
53+
buildConfiguration = "Debug"
54+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
55+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
56+
launchStyle = "0"
57+
useCustomWorkingDirectory = "NO"
58+
ignoresPersistentStateOnLaunch = "NO"
59+
debugDocumentVersioning = "YES"
60+
debugServiceExtension = "internal"
61+
allowLocationSimulation = "YES">
62+
<MacroExpansion>
63+
<BuildableReference
64+
BuildableIdentifier = "primary"
65+
BlueprintIdentifier = "54B8E4A9224BDC4100930F18"
66+
BuildableName = "Firestore_IntegrationTests_macOS.xctest"
67+
BlueprintName = "Firestore_IntegrationTests_macOS"
68+
ReferencedContainer = "container:Firestore.xcodeproj">
69+
</BuildableReference>
70+
</MacroExpansion>
71+
<EnvironmentVariables>
72+
<EnvironmentVariable
73+
key = "BACKEND_EDITION"
74+
value = "enterprise"
75+
isEnabled = "YES">
76+
</EnvironmentVariable>
77+
</EnvironmentVariables>
78+
</LaunchAction>
79+
<ProfileAction
80+
buildConfiguration = "Release"
81+
shouldUseLaunchSchemeArgsEnv = "YES"
82+
savedToolIdentifier = ""
83+
useCustomWorkingDirectory = "NO"
84+
debugDocumentVersioning = "YES">
85+
<MacroExpansion>
86+
<BuildableReference
87+
BuildableIdentifier = "primary"
88+
BlueprintIdentifier = "54B8E4A9224BDC4100930F18"
89+
BuildableName = "Firestore_IntegrationTests_macOS.xctest"
90+
BlueprintName = "Firestore_IntegrationTests_macOS"
91+
ReferencedContainer = "container:Firestore.xcodeproj">
92+
</BuildableReference>
93+
</MacroExpansion>
94+
</ProfileAction>
95+
<AnalyzeAction
96+
buildConfiguration = "Debug">
97+
</AnalyzeAction>
98+
<ArchiveAction
99+
buildConfiguration = "Release"
100+
revealArchiveInOrganizer = "YES">
101+
</ArchiveAction>
102+
</Scheme>
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1010"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "54AA33B3224C0035006CE580"
18+
BuildableName = "Firestore_IntegrationTests_tvOS.xctest"
19+
BlueprintName = "Firestore_IntegrationTests_tvOS"
20+
ReferencedContainer = "container:Firestore.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<MacroExpansion>
31+
<BuildableReference
32+
BuildableIdentifier = "primary"
33+
BlueprintIdentifier = "54AA33B3224C0035006CE580"
34+
BuildableName = "Firestore_IntegrationTests_tvOS.xctest"
35+
BlueprintName = "Firestore_IntegrationTests_tvOS"
36+
ReferencedContainer = "container:Firestore.xcodeproj">
37+
</BuildableReference>
38+
</MacroExpansion>
39+
<Testables>
40+
<TestableReference
41+
skipped = "NO">
42+
<BuildableReference
43+
BuildableIdentifier = "primary"
44+
BlueprintIdentifier = "54AA33B3224C0035006CE580"
45+
BuildableName = "Firestore_IntegrationTests_tvOS.xctest"
46+
BlueprintName = "Firestore_IntegrationTests_tvOS"
47+
ReferencedContainer = "container:Firestore.xcodeproj">
48+
</BuildableReference>
49+
</TestableReference>
50+
</Testables>
51+
</TestAction>
52+
<LaunchAction
53+
buildConfiguration = "Debug"
54+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
55+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
56+
launchStyle = "0"
57+
useCustomWorkingDirectory = "NO"
58+
ignoresPersistentStateOnLaunch = "NO"
59+
debugDocumentVersioning = "YES"
60+
debugServiceExtension = "internal"
61+
allowLocationSimulation = "YES">
62+
<MacroExpansion>
63+
<BuildableReference
64+
BuildableIdentifier = "primary"
65+
BlueprintIdentifier = "54AA33B3224C0035006CE580"
66+
BuildableName = "Firestore_IntegrationTests_tvOS.xctest"
67+
BlueprintName = "Firestore_IntegrationTests_tvOS"
68+
ReferencedContainer = "container:Firestore.xcodeproj">
69+
</BuildableReference>
70+
</MacroExpansion>
71+
<EnvironmentVariables>
72+
<EnvironmentVariable
73+
key = "BACKEND_EDITION"
74+
value = "enterprise"
75+
isEnabled = "YES">
76+
</EnvironmentVariable>
77+
</EnvironmentVariables>
78+
</LaunchAction>
79+
<ProfileAction
80+
buildConfiguration = "Release"
81+
shouldUseLaunchSchemeArgsEnv = "YES"
82+
savedToolIdentifier = ""
83+
useCustomWorkingDirectory = "NO"
84+
debugDocumentVersioning = "YES">
85+
<MacroExpansion>
86+
<BuildableReference
87+
BuildableIdentifier = "primary"
88+
BlueprintIdentifier = "54AA33B3224C0035006CE580"
89+
BuildableName = "Firestore_IntegrationTests_tvOS.xctest"
90+
BlueprintName = "Firestore_IntegrationTests_tvOS"
91+
ReferencedContainer = "container:Firestore.xcodeproj">
92+
</BuildableReference>
93+
</MacroExpansion>
94+
</ProfileAction>
95+
<AnalyzeAction
96+
buildConfiguration = "Debug">
97+
</AnalyzeAction>
98+
<ArchiveAction
99+
buildConfiguration = "Release"
100+
revealArchiveInOrganizer = "YES">
101+
</ArchiveAction>
102+
</Scheme>

scripts/build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ USAGE: $0 product [platform] [method]
3131
product can be one of:
3232
Firebase
3333
Firestore
34+
FirestoreEnterprise
3435
CombineSwift
3536
InAppMessaging
3637
Messaging
@@ -365,6 +366,18 @@ case "$product-$platform-$method" in
365366
test
366367
;;
367368

369+
FirestoreEnterprise-*-xcodebuild)
370+
"${firestore_emulator}" start
371+
trap '"${firestore_emulator}" stop' ERR EXIT
372+
373+
RunXcodebuild \
374+
-workspace 'Firestore/Example/Firestore.xcworkspace' \
375+
-scheme "Firestore_IntegrationTests_Enterprise_$platform" \
376+
-enableCodeCoverage YES \
377+
"${xcb_flags[@]}" \
378+
test
379+
;;
380+
368381
Firestore-macOS-cmake | Firestore-Linux-cmake)
369382
"${firestore_emulator}" start
370383
trap '"${firestore_emulator}" stop' ERR EXIT

0 commit comments

Comments
 (0)