-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
43 lines (36 loc) · 998 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
35
36
37
38
39
40
41
42
43
CONFIG = debug
PLATFORM_IOS = iOS Simulator,name=iPhone 13 Pro
PLATFORM_MACOS = macOS
PLATFORM_MAC_CATALYST = macOS,variant=Mac Catalyst
PLATFORM_TVOS = tvOS Simulator,name=Apple TV
PLATFORM_WATCHOS = watchOS Simulator,name=Apple Watch Series 7 (45mm)
test-all: test build
test:
xcodebuild test \
-configuration $(CONFIG) \
-scheme ConcurrencyExtras \
-destination platform="$(PLATFORM_IOS)"
build:
for platform in "$(PLATFORM_IOS)" "$(PLATFORM_MACOS)" "$(PLATFORM_MAC_CATALYST)" "$(PLATFORM_TVOS)" "$(PLATFORM_WATCHOS)"; do \
xcodebuild \
-configuration $(CONFIG) \
-workspace ConcurrencyExtras.xcworkspace \
-scheme ConcurrencyExtras \
-destination platform="$$platform" || exit 1; \
done;
test-linux:
docker run \
--rm \
-v "$(PWD):$(PWD)" \
-w "$(PWD)" \
swift:5.8 \
bash -c 'swift test'
test-swift:
swift test
format:
swift format \
--ignore-unparsable-files \
--in-place \
--recursive \
./Package.swift ./Sources ./Tests
.PHONY: format test