Skip to content

Commit 827bd53

Browse files
committed
Обновил Makefile
Добавил команды build и test для удобства
1 parent 02fe6a1 commit 827bd53

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 upload_screenshots testflight fastlane
1+
.PHONY: help setup setup_hook setup_snapshot setup_fastlane setup_cursor update update_fastlane update_swiftformat format screenshots upload_screenshots testflight fastlane build test
22

33
# Цвета и шрифт
44
YELLOW=\033[1;33m
@@ -362,6 +362,14 @@ fastlane:
362362
bundle exec fastlane; \
363363
'
364364

365+
## build: Сборка проекта в терминале
366+
build:
367+
xcodebuild -project SwiftUI-WorkoutApp.xcodeproj -scheme SwiftUI-WorkoutApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16 Pro' build
368+
369+
## test: Запускает unit-тесты в терминале
370+
test:
371+
xcodebuild -project SwiftUI-WorkoutApp.xcodeproj -scheme SwiftUI-WorkoutApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16 Pro' test -testPlan SwiftUI-WorkoutApp
372+
365373
.DEFAULT:
366374
@printf "$(RED)Неизвестная команда: 'make $@'\n$(RESET)"
367375
@$(MAKE) help

0 commit comments

Comments
 (0)