-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (53 loc) · 1.08 KB
/
Makefile
File metadata and controls
62 lines (53 loc) · 1.08 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
TMP_FOLDER := .tmp
.PHONY: setup-mise
setup-mise:
curl https://mise.run | sh
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
.PHONY: setup
setup: setup-mise
.PHONY: format
format:
mise install
swiftformat .
swiftlint --quiet --no-cache --fix
.PHONY: lint
lint:
mise install
swiftformat --lint .
swiftlint --quiet --strict --no-cache
.PHONY: clean
clean:
tuist clean
rm -rf .build
rm -rf .swiftpm/xcode/package.xcworkspace
rm -rf .xcresults
rm -rf *.doccarchive
rm -rf *.xcodeproj
rm -rf *.xcworkspace
rm -rf *.xcframework
rm -f *.podspec
rm -rf Derived
rm -rf Package.resolved
rm -rf $(TMP_FOLDER)
.PHONY: open
open:
mise install
DEV=true tuist generate
.PHONY: generate
generate:
mise install
tuist generate --no-open
.PHONY: build-and-test
build-and-test:
make setup
make generate
set -o pipefail && \
xcodebuild \
-scheme ios-makefile \
-workspace ios-makefile.xcworkspace \
-destination "platform=iOS Simulator,name=iPhone 16 Pro Max,OS=18.2" \
-derivedDataPath Build/ \
-enableCodeCoverage YES \
-allowProvisioningUpdates \
-verbose \
test