build.cmd 650 B

1234567891011121314151617181920212223242526
  1. cargo clean
  2. @if ERRORLEVEL 1 goto :error
  3. cargo install cargo-audit
  4. @if ERRORLEVEL 1 goto :error
  5. cargo install cargo-auditable
  6. @if ERRORLEVEL 1 goto :error
  7. cargo build --package letmein
  8. @if ERRORLEVEL 1 goto :error
  9. cargo test --package letmein
  10. @if ERRORLEVEL 1 goto :error
  11. cargo test --package letmein-conf
  12. @if ERRORLEVEL 1 goto :error
  13. cargo test --package letmein-proto
  14. @if ERRORLEVEL 1 goto :error
  15. cargo auditable build --release --package letmein
  16. @if ERRORLEVEL 1 goto :error
  17. cargo audit --deny warnings bin target\release\letmein.exe
  18. @if ERRORLEVEL 1 goto :error
  19. @echo SUCCESS
  20. @pause
  21. @exit /B 0
  22. @:error
  23. @pause
  24. @exit /B 1