Files
sodalive-ios/work/tests/check-user-creator-chat-date-presentation.sh
T

21 lines
813 B
Bash

#!/bin/sh
set -eu
root=$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)
tmp=$(mktemp -d)
trap 'rm -rf "$tmp"' EXIT
export TMPDIR="$tmp"
export CLANG_MODULE_CACHE_PATH="$tmp/clang-cache"
export SWIFT_MODULECACHE_PATH="$tmp/swift-cache"
export XDG_CACHE_HOME="$tmp/cache"
swiftc -swift-version 5 -module-cache-path "$SWIFT_MODULECACHE_PATH" \
"$root/SodaLive/Sources/V2/Main/Chat/UserCreatorChat/Models/UserCreatorChatModels.swift" \
"$root/SodaLive/Sources/V2/Main/Chat/UserCreatorChat/Models/UserCreatorChatDisplayMessage.swift" \
"$root/SodaLive/Sources/V2/Main/Chat/UserCreatorChat/Models/UserCreatorChatDatePresentation.swift" \
"$root/work/tests/UserCreatorChatDatePresentationCheck.swift" \
-o "$tmp/user-creator-chat-date-presentation-check"
"$tmp/user-creator-chat-date-presentation-check"