Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Run full compatibility suite locally
Browse files Browse the repository at this point in the history
These simulators aren't available on CircleCI or would overwhelm limited resources.
  • Loading branch information
friedbunny committed Jan 11, 2018
1 parent b452ea6 commit 0af0da2
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,31 @@ IOS_PROJ_PATH = $(IOS_OUTPUT_PATH)/mbgl.xcodeproj
IOS_WORK_PATH = platform/ios/ios.xcworkspace
IOS_USER_DATA_PATH = $(IOS_WORK_PATH)/xcuserdata/$(USER).xcuserdatad

IOS_XCODEBUILD_SIM = xcodebuild \
ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES \
-derivedDataPath $(IOS_OUTPUT_PATH) \
-configuration $(BUILDTYPE) -sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone X,OS=latest' \
IOS_SIMULATORS = -destination 'platform=iOS Simulator,name=iPhone X,OS=latest' \
-destination 'platform=iOS Simulator,name=iPhone 8,OS=latest' \
-destination 'platform=iOS Simulator,name=iPad Pro (10.5-inch),OS=latest' \
-destination 'platform=iOS Simulator,name=iPhone 7 Plus,OS=10.3.1' \
-destination 'platform=iOS Simulator,name=iPhone 7,OS=10.3.1' \
-destination 'platform=iOS Simulator,name=iPad Air 2,OS=10.3.1' \
-destination 'platform=iOS Simulator,name=iPad (5th generation),OS=10.3.1'

# Run full compatibility suite locally
ifeq ($(CI),)
IOS_SIMULATORS += \
-destination 'platform=iOS Simulator,name=iPhone SE,OS=latest' \
-destination 'platform=iOS Simulator,name=iPhone 5s,OS=10.3.1' \
-destination 'platform=iOS Simulator,name=iPhone 6s Plus,OS=9.3' \
-destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.3' \
-destination 'platform=iOS Simulator,name=iPad Air 2,OS=9.3' \
-destination 'platform=iOS Simulator,name=iPhone 6 Plus,OS=8.4' \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=8.4' \
-destination 'platform=iOS Simulator,name=iPad Air,OS=8.4'
endif

IOS_XCODEBUILD_SIM = xcodebuild \
ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES \
-derivedDataPath $(IOS_OUTPUT_PATH) \
-configuration $(BUILDTYPE) -sdk iphonesimulator \
$(IOS_SIMULATORS) \
-parallelizeTargets \
-jobs $(JOBS) \
-workspace $(IOS_WORK_PATH)
Expand Down

0 comments on commit 0af0da2

Please sign in to comment.