summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wray <jason@mapbox.com>2019-08-16 17:34:49 -0700
committerJason Wray <jason@mapbox.com>2019-08-16 17:34:49 -0700
commit842c81a56506fcd9a74c4e2bf0d9179e60b30de0 (patch)
treef1de4a70cfd5ab1b74088fcd90fa7fcb9f0db4d8
parentf05a16342698a5e725076b3c601d67a4ec1e35ca (diff)
downloadqtlocation-mapboxgl-upstream/friedbunny-farms-some-devices-in-the-sky-but-firebase-this-time.tar.gz
-rw-r--r--Makefile15
-rw-r--r--circle.yml2
2 files changed, 13 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fb3285aa73..7ab4c0b9d8 100644
--- a/Makefile
+++ b/Makefile
@@ -332,17 +332,26 @@ ios-install-simulators:
ios-check-events-symbols:
./platform/ios/scripts/check-events-symbols.sh
-.PHONY: ios-device-farm
-ios-device-farm: $(IOS_PROJ_PATH)
+.PHONY: ios-build-for-testing
+ios-build-for-testing: $(IOS_PROJ_PATH)
set -o pipefail && xcodebuild \
ARCHS=arm64 ONLY_ACTIVE_ARCH=YES \
- CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO \
-derivedDataPath $(IOS_OUTPUT_PATH) \
-configuration $(BUILDTYPE) -sdk iphoneos \
-workspace $(IOS_WORK_PATH) \
-jobs $(JOBS) \
-scheme 'Integration Test Harness' build-for-testing $(XCPRETTY)
+
+.PHONY: ios-device-farm
+ios-device-farm: ios-build-for-testing
+ cd build/ios && rm Debug-iphoneos/*.a && zip -r IntegrationTests.zip Debug-iphoneos *.xctestrun
+ gcloud config set project ios-maps-sdk-249922
+ gcloud firebase test ios run \
+ --test build/ios/IntegrationTests.zip \
+ --device model=iphone8,version=12.0,locale=en,orientation=portrait \
+ --timeout 20m
+
.PHONY: ipackage
ipackage: ipackage*
ipackage%:
diff --git a/circle.yml b/circle.yml
index d464747691..918c89ebfe 100644
--- a/circle.yml
+++ b/circle.yml
@@ -1055,7 +1055,7 @@ jobs:
- login-google-cloud-platform: { project: 'ios-maps-sdk-249922' }
- run:
name: Build for testing
- command: make ios-device-farm
+ command: make ios-build-for-testing
- run:
name: Prepare Integration Test Harness for device farm
command: |