macoc/scripts/test.sh
root 1e50fae6c8
Some checks failed
macoc CI (Docker) / swift-core (push) Failing after 3s
ci: run Swift core tests on available Docker runner
2026-10-26 10:04:29 +03:00

14 lines
397 B
Bash
Executable file

#!/usr/bin/env bash
source "$(dirname "$0")/common.sh"
if [[ "$IS_MACOS" == 1 ]]; then
cd "$ROOT"
swift test
elif command -v swift >/dev/null 2>&1; then
bash "$ROOT/scripts/test-linux-core.sh"
elif [[ "${MACOC_REQUIRE_SWIFT:-0}" == 1 ]]; then
echo "ERROR: the CI requires Swift for Linux XCTest." >&2
exit 1
else
echo "SKIP: Swift is not installed on this Linux development host."
fi