-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
29 lines (24 loc) · 1.07 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
FASTLANE := bundle exec fastlane
XCODEPROJ := BoilerplateApp/BoilerplateApp.xcodeproj
SCHEME := CI_iOS
DEVICE := iPhone 15 Pro
OS_VERSION := 17.5
# Targets
.PHONY: help
help:
@echo "Available tasks:"
@echo " 🎯 make test # 🧪 Run unit tests on the $(DEVICE) simulator with iOS $(OS_VERSION)"
@echo " 🛠️ make build # 🔨 Build the project for the $(DEVICE) simulator with iOS $(OS_VERSION)"
@echo " 🧹 make clean # 🧼 Clean the project"
@echo " ℹ️ make help # 📋 Display this help message"
@echo ""
.PHONY: test
test:
xcodebuild -project $(XCODEPROJ) -scheme $(SCHEME) -sdk iphonesimulator -destination 'platform=iOS Simulator,name=$(DEVICE),OS=$(OS_VERSION)' OTHER_SWIFT_FLAGS="-D SKIP_FORMAT" clean build test
.PHONY: build
build:
xcodebuild -project $(XCODEPROJ) -scheme $(SCHEME) -sdk iphonesimulator -destination 'platform=iOS Simulator,name=$(DEVICE),OS=$(OS_VERSION)' OTHER_SWIFT_FLAGS="-D SKIP_FORMAT" clean build
.PHONY: clean
clean:
xcodebuild -project $(XCODEPROJ) -scheme $(SCHEME) clean
.DEFAULT_GOAL := help