Skip to content

Commit ca8e7f2

Browse files
authored
Build Firestore macOS on Travis (#2645)
* Add support for testing Firestore macOS on Travis * Firestore_{Swift,Integration}Tests_macOS don't exist yet
1 parent 3a24929 commit ca8e7f2

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ jobs:
155155
script:
156156
- travis_retry ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM
157157

158+
- stage: test
159+
env:
160+
- PROJECT=Firestore PLATFORM=macOS METHOD=xcodebuild
161+
before_install:
162+
- ./scripts/if_changed.sh ./scripts/install_prereqs.sh
163+
script:
164+
- travis_retry ./scripts/if_changed.sh ./scripts/build.sh $PROJECT $PLATFORM
165+
158166
# Firestore sanitizers
159167

160168
- stage: test

scripts/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,16 @@ case "$product-$method-$platform" in
304304
-scheme "Firestore_IntegrationTests_$platform" \
305305
"${xcb_flags[@]}" \
306306
build
307+
;;
307308

309+
Firestore-xcodebuild-macOS)
310+
# TODO(wilhuff): Combine with above once all targets exist
311+
RunXcodebuild \
312+
-workspace 'Firestore/Example/Firestore.xcworkspace' \
313+
-scheme "Firestore_Tests_$platform" \
314+
"${xcb_flags[@]}" \
315+
build \
316+
test
308317
;;
309318

310319
Firestore-cmake-macOS)

0 commit comments

Comments
 (0)