gege-jdr-backend/justfile

59 lines
1009 B
Makefile
Raw Normal View History

mod backend
mod docker
2024-08-10 09:33:15 +00:00
default: lint
2024-08-10 09:33:15 +00:00
format:
cargo fmt --all
format-check:
cargo fmt --check --all
migrate:
sqlx migrate run --source gejdr-core/migrations
2024-08-10 09:33:15 +00:00
build:
cargo auditable build --bin gejdr-backend
cargo auditable build --bin gejdr-bot
2024-08-10 09:33:15 +00:00
lint:
cargo clippy --all-targets
msrv:
cargo msrv verify
release-build:
cargo auditable build --release --bin gejdr-backend
cargo auditable build --release --bin gejdr-bot
2024-08-10 09:33:15 +00:00
release-run:
cargo auditable run --release
audit: build
cargo audit bin target/debug/gejdr-backend
cargo audit bin target/debug/gejdr-bot
2024-08-10 09:33:15 +00:00
audit-release:
cargo audit bin target/release/gejdr-backend
cargo audit bin target/release/gejdr-bot
2024-08-10 09:33:15 +00:00
test:
cargo test --all-targets --all
2024-08-10 09:33:15 +00:00
coverage:
mkdir -p coverage
cargo tarpaulin --config .tarpaulin.local.toml
coverage-ci:
mkdir -p coverage
cargo tarpaulin --config .tarpaulin.ci.toml
check-all: format-check lint msrv coverage audit
# docker-build:
# nix build .#docker
2024-08-10 09:33:15 +00:00
## Local Variables:
## mode: makefile
## End: