You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
747 B

1 week ago
@echo off
rem 票 06:install 依赖链(跳过测试),再跑 crm-opportunity + crm-rule 两模块全量测试
set "JAVA_HOME=C:\Users\Administrator\.jdks\corretto-17.0.13"
set "MVN=D:\IntelliJ IDEA 2025.1.3\plugins\maven\lib\maven3\bin\mvn.cmd"
cd /d e:\code\crm-backend-matt
echo === STEP1 install deps (skip tests) ===
call "%MVN%" -pl crm-opportunity,crm-rule -am install -DskipTests -s settings.xml
if errorlevel 1 goto fail
echo === STEP2 test crm-opportunity ===
call "%MVN%" -pl crm-opportunity test -s settings.xml
if errorlevel 1 goto fail2
echo === STEP3 test crm-rule ===
call "%MVN%" -pl crm-rule test -s settings.xml
echo EXIT=%ERRORLEVEL%
goto end
:fail
echo EXIT=install-failed
goto end
:fail2
echo EXIT=opp-test-failed
:end