16 lines
652 B
Bash
16 lines
652 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
TEMP_DIR="$(mktemp -d)"
|
|
trap 'rm -rf "$TEMP_DIR"' EXIT
|
|
|
|
swiftc -module-cache-path "$TEMP_DIR/module-cache" \
|
|
"$ROOT/SodaLive/Sources/Common/ApiResponseWithoutData.swift" \
|
|
"$ROOT/SodaLive/Sources/V2/Gift/Models/GiftModels.swift" \
|
|
"$ROOT/SodaLive/Sources/V2/Gift/Components/GiftContactInputRule.swift" \
|
|
"$ROOT/SodaLive/Sources/V2/Gift/RecipientAddress/GiftRecipientAddressViewModel.swift" \
|
|
"$ROOT/work/tests/GiftRecipientAddressCheck.swift" \
|
|
-o "$TEMP_DIR/check-gift-recipient-address"
|
|
"$TEMP_DIR/check-gift-recipient-address"
|