2024-11-23 09:00:53 +00:00
|
|
|
mod backend
|
|
|
|
mod docker
|
2024-08-10 09:33:15 +00:00
|
|
|
|
2024-11-23 09:00:53 +00:00
|
|
|
default: lint
|
2024-08-10 09:33:15 +00:00
|
|
|
|
|
|
|
format:
|
|
|
|
cargo fmt --all
|
|
|
|
|
|
|
|
format-check:
|
|
|
|
cargo fmt --check --all
|
|
|
|
|
2024-11-23 09:00:53 +00:00
|
|
|
migrate:
|
|
|
|
sqlx migrate run --source gejdr-core/migrations
|
2024-08-10 09:33:15 +00:00
|
|
|
|
2024-11-23 09:00:53 +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:
|
2024-11-23 09:00:53 +00:00
|
|
|
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
|
2024-11-23 09:00:53 +00:00
|
|
|
cargo audit bin target/debug/gejdr-backend
|
|
|
|
cargo audit bin target/debug/gejdr-bot
|
2024-08-10 09:33:15 +00:00
|
|
|
|
2024-11-23 09:00:53 +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:
|
2024-11-23 09:00:53 +00:00
|
|
|
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
|
|
|
|
|
2024-11-23 09:00:53 +00:00
|
|
|
# docker-build:
|
|
|
|
# nix build .#docker
|
2024-08-10 09:33:15 +00:00
|
|
|
|
|
|
|
## Local Variables:
|
|
|
|
## mode: makefile
|
|
|
|
## End:
|