From 51ffae2650e35ee63a313d6fd5ed558024a72317 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Wed, 21 Mar 2018 08:16:26 -0700 Subject: Run Functions Unit Tests on travis (#954) --- scripts/build.sh | 9 +++++++++ scripts/if_changed.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build.sh b/scripts/build.sh index df3faae..8841dc9 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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) diff --git a/scripts/if_changed.sh b/scripts/if_changed.sh index 616eebb..08ca96d 100755 --- a/scripts/if_changed.sh +++ b/scripts/if_changed.sh @@ -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) -- cgit v1.2.3