16 lines
441 B
Bash
Executable File
16 lines
441 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)
|
|
tmp=$(mktemp -d)
|
|
trap 'rm -rf "$tmp"' EXIT
|
|
|
|
swiftc \
|
|
"$root/SodaLive/Sources/Common/ApiResponse.swift" \
|
|
"$root/SodaLive/Sources/Common/ApiResponseWithoutData.swift" \
|
|
"$root/SodaLive/Sources/V2/Gift/Models/GiftModels.swift" \
|
|
"$root/work/tests/GiftDecodingContractCheck.swift" \
|
|
-o "$tmp/gift-decoding-contract-check"
|
|
|
|
"$tmp/gift-decoding-contract-check"
|