new tests broken
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
ROOT="$(cd -- "$(dirname -- "$0")" && pwd)"
|
||||||
cd "$ROOT"
|
cd "$ROOT"
|
||||||
if ! command -v xcodebuild >/dev/null 2>&1; then
|
if ! command -v xcodebuild >/dev/null 2>&1; then
|
||||||
echo "ERROR: Xcode and xcodebuild are required on macOS." >&2
|
echo 'ERROR: Xcode and xcodebuild are required on macOS.' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
mkdir -p test-results
|
mkdir -p test-results
|
||||||
@@ -18,14 +18,13 @@ if xcodebuild test \
|
|||||||
-destination 'platform=macOS,arch=arm64' \
|
-destination 'platform=macOS,arch=arm64' \
|
||||||
-derivedDataPath "$ROOT/build" \
|
-derivedDataPath "$ROOT/build" \
|
||||||
-resultBundlePath "$RESULT" \
|
-resultBundlePath "$RESULT" \
|
||||||
-arch arm64 \
|
|
||||||
ONLY_ACTIVE_ARCH=YES \
|
ONLY_ACTIVE_ARCH=YES \
|
||||||
ENABLE_TESTABILITY=YES \
|
ENABLE_TESTABILITY=YES \
|
||||||
SWIFT_ENABLE_EXPLICIT_MODULES=NO \
|
SWIFT_ENABLE_EXPLICIT_MODULES=NO \
|
||||||
CODE_SIGNING_ALLOWED=NO 2>&1 | tee "$LOG"; then
|
CODE_SIGNING_ALLOWED=NO 2>&1 | tee "$LOG"; then
|
||||||
STATUS=0
|
STATUS=0
|
||||||
else
|
else
|
||||||
STATUS=$?
|
STATUS=${PIPESTATUS[0]}
|
||||||
fi
|
fi
|
||||||
printf '\nTest log: %s\nTest results: %s\n' "$LOG" "$RESULT"
|
printf '\nTest log: %s\nTest results: %s\n' "$LOG" "$RESULT"
|
||||||
exit "$STATUS"
|
exit "$STATUS"
|
||||||
|
|||||||
Reference in New Issue
Block a user