Skip to content

Commit f798231

Browse files
committed
Обновил Makefile
Добавил команды build и test для удобства
1 parent 74ff40c commit f798231

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help setup setup_hook setup_snapshot setup_fastlane setup_cursor update update_fastlane update_swiftformat format screenshots
1+
.PHONY: help setup setup_hook setup_snapshot setup_fastlane setup_cursor update update_fastlane update_swiftformat format screenshots build test
22

33
# Цвета и шрифт
44
YELLOW=\033[1;33m
@@ -309,6 +309,14 @@ screenshots:
309309
bundle exec fastlane snapshot; \
310310
'
311311

312+
## build: Сборка проекта в терминале
313+
build:
314+
xcodebuild -project SwiftUI-WorkoutApp.xcodeproj -scheme SwiftUI-WorkoutApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16 Pro' build
315+
316+
## test: Запускает unit-тесты в терминале
317+
test:
318+
xcodebuild -project SwiftUI-WorkoutApp.xcodeproj -scheme SwiftUI-WorkoutApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16 Pro' test -testPlan SwiftUI-WorkoutApp
319+
312320
.DEFAULT:
313321
@printf "$(RED)Неизвестная команда: 'make $@'\n$(RESET)"
314322
@$(MAKE) help

0 commit comments

Comments
 (0)