-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
65 lines (54 loc) · 1.54 KB
/
build.bat
File metadata and controls
65 lines (54 loc) · 1.54 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@echo off
REM StrataQuant v0.2.0 - Build and Test Script (Windows)
echo ================================
echo StrataQuant v0.2.0 Build Script
echo ================================
echo.
REM Check Rust installation
where cargo >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo X Rust not found. Install from https://rustup.rs/
exit /b 1
)
for /f "tokens=*" %%i in ('rustc --version') do set RUST_VERSION=%%i
echo + Rust found: %RUST_VERSION%
echo.
REM Build in release mode
echo Building release binary...
cargo build --release
if %ERRORLEVEL% NEQ 0 (
echo X Build failed
exit /b 1
)
echo + Build successful
echo.
REM Run clippy
echo Running clippy...
cargo clippy -- -D warnings
if %ERRORLEVEL% NEQ 0 (
echo X Clippy found issues
exit /b 1
)
echo + Clippy passed (0 warnings)
echo.
REM Check binary
if exist target\release\strataquant.exe (
echo + Binary created successfully
for %%A in (target\release\strataquant.exe) do echo Size: %%~zA bytes
) else (
echo X Binary not found
exit /b 1
)
echo.
echo ================================
echo Build Complete!
echo ================================
echo.
echo Next steps:
echo 1. Download data: target\release\strataquant.exe download
echo 2. Run backtest: target\release\strataquant.exe backtest
echo 3. Test SMA: target\release\strataquant.exe backtest --strategy sma
echo 4. Optimize: target\release\strataquant.exe optimize
echo 5. Walk-forward: target\release\strataquant.exe walkforward
echo 6. Compare all: target\release\strataquant.exe compare
echo.