Added Makefile and tests for the main radarr_handler

This commit is contained in:
Dark-Alex-17 committed 2023-08-08 10:50:05 -06:00
1 parent c15bda5885
commit befd4bc15a
3 files changed
+722 -46

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
default: run
test:
@cargo test
## Run all tests with coverage - `cargo install cargo-tarpaulin`
test-cov:
@cargo tarpaulin
build:
@make test && cargo build --release
run:
@CARGO_INCREMENTAL=1 cargo fmt && make lint && cargo run
lint:
@find . | grep '\.\/src\/.*\.rs$$' | xargs touch && cargo clippy --all-targets --workspace
lint-fix:
@cargo fix
fmt:
@cargo fmt
## Analyse for unsafe usage - `cargo install cargo-geiger`
analyse:
@cargo geiger
release:
@git tag -a ${V} -m "Release ${V}" && git push origin ${V}
delete-tag:
@git tag -d ${V} && git push --delete origin ${V}