Skip to content

Commit 2e87d33

Browse files
committed
Add validate.bat for windows devops
1 parent 34cd488 commit 2e87d33

3 files changed

Lines changed: 389 additions & 112 deletions

File tree

bin/analytics/utils/common.bat

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -188,26 +188,12 @@ for /d %%d in ("%SCRIPT_DIR%\build*") do (
188188
exit /b 0
189189

190190
rem ##
191-
rem # Runs analytics validation via bash if available, otherwise does basic checks.
191+
rem # Runs analytics validation via validate.bat.
192192
rem ##
193193
:run_analytics_validation
194-
where bash >nul 2>nul
195-
if errorlevel 1 (
196-
call :log_warning "'bash' not found. Performing basic tool validation..."
197-
call :validate_basic_tools
198-
exit /b %errorlevel%
199-
)
200-
201-
rem Bash is available - normalize line endings and run validation script
202-
if exist "%SCRIPT_DIR%\analytics\utils\validate.sh" (
203-
bash -lc "sed -i 's/\r$//' '%SCRIPT_DIR%/analytics/utils/validate.sh' 2>/dev/null || true; sed -i 's/\r$//' '%SCRIPT_DIR%/analytics'/*.sh 2>/dev/null || true; sed -i 's/\r$//' '%SCRIPT_DIR%/analytics/utils'/*.sh 2>/dev/null || true; sed -i 's/\r$//' '%SCRIPT_DIR%'/*.sh 2>/dev/null || true" >nul 2>nul
204-
bash "%SCRIPT_DIR%\analytics\utils\validate.sh"
205-
exit /b %errorlevel%
206-
) else (
207-
call :log_warning "Analytics validation script not found. Continuing with basic checks..."
208-
call :validate_basic_tools
209-
exit /b %errorlevel%
210-
)
194+
rem Use the full check
195+
call "%SCRIPT_DIR%\analytics\utils\validate.bat"
196+
exit /b %errorlevel%
211197

212198
rem ##
213199
rem # Validates that basic required tools are available.

0 commit comments

Comments
 (0)