-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (42 loc) · 1.43 KB
/
Copy pathMakefile
File metadata and controls
61 lines (42 loc) · 1.43 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
app_name := MyApp
ios_device := iPhone 14
ios_os := 16.4
.PHONY: bootstrap build run workspace module test_ios test_macos rename clean format lint
all: bootstrap rename run
ci: --ci-bootstrap workspace build test_macos test_ios
ci_macos: --ci-bootstrap workspace build test_macos
ci_ios: --ci-bootstrap workspace build test_ios
test: test_macos test_ios
bootstrap: --homebrew --mint --mint --hooks
rename:
@./Scripts/rename.sh
build: --tuist
@tuist build --clean
run: --tuist
@tuist generate
workspace: --tuist
@tuist generate --no-open
module: --tuist
@./Scripts/module.sh
test_ios:
@set -o pipefail && xcodebuild test -workspace ${app_name}.xcworkspace -scheme "CI-iOS" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -sdk iphonesimulator -destination "platform=iOS Simulator,name=${ios_device},OS=${ios_os}" | mint run xcbeautify
test_macos:
@set -o pipefail && xcodebuild test -workspace ${app_name}.xcworkspace -scheme "CI-macOS" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -sdk macosx -destination "platform=macOS" | mint run xcbeautify
clean:
@find . -name "*.xcodeproj" -type d -print0 | xargs -0 /bin/rm -r
@find . -name "*.xcworkspace" -type d -print0 | xargs -0 /bin/rm -r
format:
@./Scripts/format.sh
lint:
@./Scripts/lint.sh
unbootstrap:
@./Scripts/uninstall.sh
--homebrew:
@./Scripts/homebrew.sh
--mint:
@./Scripts/mint.sh
--tuist:
@./Scripts/tuist.sh
--hooks:
@./Scripts/hooks.sh
--ci-bootstrap: --mint --tuist