summaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/justfile b/justfile
index 25d8b66..a6efeeb 100644
--- a/justfile
+++ b/justfile
@@ -35,6 +35,11 @@ localize destination="platform=macOS" configuration="Debug":
xcodebuild -project Sora.xcodeproj -configuration {{configuration}} -scheme {{target}} -destination '{{destination}}' CODE_SIGNING_ALLOWED=NO build
_test destination="platform=iOS Simulator,name=iPhone 17 Pro" scheme="SoraTests" configuration="Debug" *xcodebuild_args:
+ simulator_name="$(printf '%s\n' '{{destination}}' | sed -n "s/.*name=\\([^,']*\\).*/\\1/p")"; \
+ if [ -n "${simulator_name}" ]; then \
+ xcrun simctl boot "${simulator_name}" >/dev/null 2>&1 || true; \
+ xcrun simctl bootstatus "${simulator_name}" -b; \
+ fi
xcodebuild -project Sora.xcodeproj -configuration {{configuration}} -scheme {{scheme}} -destination '{{destination}}' {{xcodebuild_args}} test
test destination="platform=iOS Simulator,name=iPhone 17 Pro" scheme="SoraTests" configuration="Debug":