Skip to content

Commit 28745dd

Browse files
committed
run tests when building frameworks zip
1 parent 657f995 commit 28745dd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

build.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,20 @@ func buildTask(args: [String] = []) -> Process {
7373
return task
7474
}
7575

76+
let test = buildTask(args: [
77+
"-workspace", "FirebaseUI.xcworkspace",
78+
"-scheme", "FirebaseUI",
79+
"-sdk", "iphonesimulator",
80+
"-destination", "platform=iOS Simulator,name=iPhone 7",
81+
"test",
82+
"ONLY_ACTIVE_ARCH=YES", "CODE_SIGNING_REQUIRED=NO"
83+
])
84+
test.launch()
85+
test.waitUntilExit()
86+
guard test.terminationStatus == 0 else {
87+
exit(test.terminationStatus)
88+
}
89+
7690
/// A value type representing an xcodebuild call.
7791
/// param keys are parameters and expect leading dashes,
7892
/// i.e. `-workspace`

0 commit comments

Comments
 (0)