-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathRAIN_Lab_Validate.cmd
More file actions
32 lines (29 loc) · 813 Bytes
/
RAIN_Lab_Validate.cmd
File metadata and controls
32 lines (29 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
setlocal
set "REPO_ROOT=%~dp0"
cd /d "%REPO_ROOT%"
set "VENV_PY=%REPO_ROOT%.venv\Scripts\python.exe"
if not exist "%VENV_PY%" (
echo [R.A.I.N. validate] Local environment missing. Running installer...
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%REPO_ROOT%INSTALL_RAIN.ps1" -SkipPreflight
if errorlevel 1 (
echo [R.A.I.N. validate] Installer failed.
pause
exit /b 1
)
)
if not exist "%VENV_PY%" (
echo [R.A.I.N. validate] Python runtime still missing at "%VENV_PY%".
pause
exit /b 1
)
"%VENV_PY%" "%REPO_ROOT%rain_lab.py" --mode validate -- %*
set "EXIT_CODE=%ERRORLEVEL%"
echo.
if "%EXIT_CODE%"=="0" (
echo [R.A.I.N. validate] Completed.
) else (
echo [R.A.I.N. validate] One or more readiness checks failed (exit %EXIT_CODE%).
)
pause
exit /b %EXIT_CODE%