-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
25 lines (24 loc) · 650 Bytes
/
build.cmd
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
cargo clean
@if ERRORLEVEL 1 goto :error
cargo install cargo-audit
@if ERRORLEVEL 1 goto :error
cargo install cargo-auditable
@if ERRORLEVEL 1 goto :error
cargo build --package letmein
@if ERRORLEVEL 1 goto :error
cargo test --package letmein
@if ERRORLEVEL 1 goto :error
cargo test --package letmein-conf
@if ERRORLEVEL 1 goto :error
cargo test --package letmein-proto
@if ERRORLEVEL 1 goto :error
cargo auditable build --release --package letmein
@if ERRORLEVEL 1 goto :error
cargo audit bin --deny warnings target\release\letmein.exe
@if ERRORLEVEL 1 goto :error
@echo SUCCESS
@pause
@exit /B 0
@:error
@pause
@exit /B 1