File tree Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 37
37
- name : Setup project and Test Catalyst
38
38
run : scripts/third_party/travis/retry.sh scripts/test_catalyst.sh ${{ matrix.pod }} test
39
39
40
+ watchos-testapp :
41
+ runs-on : macOS-latest
42
+ strategy :
43
+ matrix :
44
+ pod : [GoogleDataTransport, GoogleDataTransportCCTSupport]
45
+ steps :
46
+ - uses : actions/checkout@v2
47
+ - name : Setup Bundler
48
+ run : scripts/setup_bundler.sh
49
+ - name : Prereqs
50
+ run : scripts/install_prereqs.sh ${{ matrix.pod }} watchOS xcodebuild
51
+ - name : Setup project and build watchOS test app
52
+ run : scripts/third_party/travis/retry.sh scripts/build.sh ${{ matrix.pod }} watchOS xcodebuild
53
+
40
54
# Scheduled jobs
41
55
42
56
datatransport-cron-only :
Original file line number Diff line number Diff line change @@ -38,11 +38,14 @@ product can be one of:
38
38
Storage
39
39
StorageSwift
40
40
SymbolCollision
41
+ GoogleDataTransport
42
+ GoogleDataTransportCCTSupport
41
43
42
44
platform can be one of:
43
45
iOS (default)
44
46
macOS
45
47
tvOS
48
+ watchOS
46
49
47
50
method can be one of:
48
51
xcodebuild (default)
@@ -201,6 +204,9 @@ tvos_flags=(
201
204
-sdk " appletvsimulator"
202
205
-destination ' platform=tvOS Simulator,name=Apple TV'
203
206
)
207
+ watchos_flags=(
208
+ -destination ' platform=iOS Simulator,name=iPhone 11 Pro'
209
+ )
204
210
205
211
# Compute standard flags for all platforms
206
212
case " $platform " in
@@ -220,6 +226,10 @@ case "$platform" in
220
226
xcb_flags=(" ${tvos_flags[@]} " )
221
227
;;
222
228
229
+ watchOS)
230
+ xcb_flags=(" ${watchos_flags[@]} " )
231
+ ;;
232
+
223
233
all)
224
234
xcb_flags=()
225
235
;;
@@ -505,6 +515,28 @@ case "$product-$platform-$method" in
505
515
test
506
516
fi
507
517
;;
518
+
519
+ GoogleDataTransport-watchOS-xcodebuild)
520
+ RunXcodebuild \
521
+ -workspace ' GoogleDataTransport/GDTWatchOSTestApp/GDTWatchOSTestApp.xcworkspace' \
522
+ -scheme " GDTWatchOSTestAppWatchKitApp" \
523
+ " ${xcb_flags[@]} " \
524
+ build
525
+ ;;
526
+
527
+ GoogleDataTransportCCTSupport-watchOS-xcodebuild)
528
+ RunXcodebuild \
529
+ -workspace ' GoogleDataTransportCCTSupport/GDTCCTWatchOSTestApp/GDTCCTWatchOSTestApp.xcworkspace' \
530
+ -scheme " GDTCCTWatchOSIndependentTestAppWatchKitApp" \
531
+ " ${xcb_flags[@]} " \
532
+ build
533
+
534
+ RunXcodebuild \
535
+ -workspace ' GoogleDataTransportCCTSupport/GDTCCTWatchOSTestApp/GDTCCTWatchOSTestApp.xcworkspace' \
536
+ -scheme " GDTCCTWatchOSCompanionTestApp" \
537
+ " ${xcb_flags[@]} " \
538
+ build
539
+ ;;
508
540
* )
509
541
echo " Don't know how to build this product-platform-method combination" 1>&2
510
542
echo " product=$product " 1>&2
Original file line number Diff line number Diff line change @@ -184,6 +184,16 @@ case "$project-$platform-$method" in
184
184
bundle exec pod install --project-directory=FirebaseMessaging/Apps/Sample --repo-update
185
185
;;
186
186
187
+ GoogleDataTransport-watchOS-xcodebuild)
188
+ install_xcpretty
189
+ bundle exec pod install --project-directory=GoogleDataTransport/GDTWatchOSTestApp/ --repo-update
190
+ ;;
191
+
192
+ GoogleDataTransportCCTSupport-watchOS-xcodebuild)
193
+ install_xcpretty
194
+ bundle exec pod install --project-directory=GoogleDataTransportCCTSupport/GDTCCTWatchOSTestApp/ --repo-update
195
+ ;;
196
+
187
197
* -pod-lib-lint)
188
198
;;
189
199
You can’t perform that action at this time.
0 commit comments