20 lines
578 B
Bash
Executable File
20 lines
578 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
APP_DIR="$ROOT_DIR/app"
|
|
|
|
if [ -z "${TDC114_API_BASE:-}" ]; then
|
|
echo "TDC114_API_BASE is required for integration tests." >&2
|
|
echo "Example: TDC114_API_BASE=https://staging.example.com $0" >&2
|
|
exit 64
|
|
fi
|
|
|
|
if [ ! -d "$APP_DIR/integration_test" ]; then
|
|
echo "integration test scaffold: $APP_DIR/integration_test does not exist yet." >&2
|
|
echo "Add Flutter integration tests before enabling this script in CI." >&2
|
|
exit 2
|
|
fi
|
|
|
|
"$ROOT_DIR/scripts/flutter-docker.sh" test integration_test
|