forked from pointfreeco/composable-core-location
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (30 loc) · 999 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PLATFORM_IOS = iOS Simulator,name=iPhone 11 Pro Max
PLATFORM_MACOS = macOS
PLATFORM_TVOS = tvOS Simulator,name=Apple TV 4K (at 1080p)
PLATFORM_WATCHOS = watchOS Simulator,name=Apple Watch Series 4 - 44mm
default: test
test:
xcodebuild test \
-scheme ComposableCoreLocation \
-destination platform="$(PLATFORM_IOS)"
xcodebuild test \
-scheme ComposableCoreLocation \
-destination platform="$(PLATFORM_MACOS)"
xcodebuild test \
-scheme ComposableCoreLocation \
-destination platform="$(PLATFORM_TVOS)"
xcodebuild \
-scheme ComposableCoreLocation_watchOS \
-destination platform="$(PLATFORM_WATCHOS)"
cd Examples/LocationManager \
&& xcodebuild test \
-scheme LocationManagerDesktop \
-destination platform="$(PLATFORM_MACOS)"
cd Examples/LocationManager \
&& xcodebuild test \
-scheme LocationManagerMobile \
-destination platform="$(PLATFORM_IOS)"
format:
swift format --in-place --recursive \
./Examples ./Package.swift ./Sources ./Tests
.PHONY: format test