22 lines
745 B
Bash
Executable File
22 lines
745 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
cd "$ROOT_DIR"
|
|
|
|
./scripts/ci/scan_tokens.sh
|
|
|
|
cd SharedCore
|
|
export SWIFTPM_MODULECACHE_OVERRIDE="${TMPDIR:-/tmp}/werkout_swiftpm_module_cache"
|
|
export CLANG_MODULE_CACHE_PATH="${TMPDIR:-/tmp}/werkout_clang_module_cache"
|
|
export XDG_CACHE_HOME="${TMPDIR:-/tmp}/werkout_xdg_cache"
|
|
mkdir -p "$SWIFTPM_MODULECACHE_OVERRIDE" "$CLANG_MODULE_CACHE_PATH" "$XDG_CACHE_HOME"
|
|
swift test --disable-sandbox --scratch-path "${TMPDIR:-/tmp}/werkout_sharedcore_scratch"
|
|
cd "$ROOT_DIR"
|
|
|
|
./scripts/smoke/build_ios.sh
|
|
./scripts/smoke/build_watch.sh
|
|
./scripts/smoke/build_tvos.sh
|
|
|
|
echo "Smoke suite passed (token scan + SharedCore tests + iOS/watchOS/tvOS builds)."
|