10 lines
391 B
Bash
Executable File
10 lines
391 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
if [[ -z "${REDIS_TEST_HOST:-}" ]]; then
|
|
printf '%s\n' '请通过 REDIS_TEST_HOST/PORT/USERNAME/PASSWORD/DATABASE/SSL_ENABLED 配置独立测试 Redis,不自动加载 .env。' >&2
|
|
exit 2
|
|
fi
|
|
AI_ENABLED=false OSS_ENABLED=false mvn -B -pl vibemake-api -am \
|
|
-Dtest=RedisLiveTest -Dsurefire.failIfNoSpecifiedTests=false test
|