generated from DevYeom/swift-app-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (39 loc) · 1.11 KB
/
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
44
45
46
47
48
PLATFORM_IOS = iOS Simulator,name=iPhone 16
PLATFORM_IPADOS = iOS Simulator,name=iPad (10th generation)
PLATFORM_MACOS = macOS
PROJECT = App/BadaBook.xcodeproj
TEST_SCHEME = AppTests
TEST_PLAN = AppTests
CONFIG = debug
default: test-all
test-ios:
xcodebuild test \
-project $(PROJECT) \
-scheme $(TEST_SCHEME) \
-testPlan $(TEST_PLAN) \
-configuration $(CONFIG) \
-destination platform="$(PLATFORM_IOS)" || exit 1;
test-ipados:
xcodebuild test \
-project $(PROJECT) \
-scheme $(TEST_SCHEME) \
-testPlan $(TEST_PLAN) \
-configuration $(CONFIG) \
-destination platform="$(PLATFORM_IPADOS)" || exit 1;
test-macos:
xcodebuild test \
-project $(PROJECT) \
-scheme $(TEST_SCHEME) \
-testPlan $(TEST_PLAN) \
-configuration $(CONFIG) \
-destination platform="$(PLATFORM_MACOS)" || exit 1;
test-all: test-ios test-ipados test-macos
install:
@./Tools/install.sh
lint: install
# recursive
@./swift-format lint -r App Sources Tests
# in place, recursive, parallel
@./swift-format format -irp App Sources Tests
@echo "swift-format completed."
.PHONY: test-ios test-ipados test-macos test-all install lint