Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Sep 11, 2024
1 parent 65a3b9e commit 92c6c7c
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,32 @@ xcodebuild:
fi;

xcodebuild-test:
$(MAKE) xcodebuild -testPlan "$(TEST_PLAN)"
if test "$(PLATFORM)" = "iOS"; \
then $(XCODEBUILD) \
-testPlan "$(TEST_PLAN)" \
-destination platform="$(PLATFORM_IOS)"; \
elif test "$(PLATFORM)" = "macOS"; \
then $(XCODEBUILD) \
-testPlan "$(TEST_PLAN)" \
-destination platform="$(PLATFORM_MACOS)"; \
elif test "$(PLATFORM)" = "tvOS"; \
then $(XCODEBUILD) \
-testPlan "$(TEST_PLAN)" \
-destination platform="$(PLATFORM_TVOS)"; \
elif test "$(PLATFORM)" = "watchOS"; \
then $(XCODEBUILD) \
-testPlan "$(TEST_PLAN)" \
-destination platform="$(PLATFORM_WATCHOS)"; \
elif test "$(PLATFORM)" = "visionOS"; \
then $(XCODEBUILD) \
-testPlan "$(TEST_PLAN)" \
-destination platform="$(PLATFORM_VISIONOS)"; \
elif test "$(PLATFORM)" = "macCatalyst"; \
then $(XCODEBUILD) \
-testPlan "$(TEST_PLAN)" \
-destination platform="$(PLATFORM_MAC_CATALYST)"; \
else exit 1; \
fi;

build-for-library-evolution:
swift build \
Expand Down

0 comments on commit 92c6c7c

Please sign in to comment.