gege-jdr-backend/justfile
Lucien Cartier-Tilet a2ea5a157d
feat: OAuth implementation with Discord
This commit separates the core features of géjdr from the backend as
these will also be used by the bot in the future.

This commit also updates the dependencies of the project. It also
removes the dependency lettre as well as the mailpit docker service
for developers as it appears clearer this project won’t send emails
anytime soon.

The publication of a docker image is also postponed until later.
2025-01-11 22:10:16 +01:00

53 lines
1.0 KiB
Makefile

mod backend 'gejdr-backend/backend.just'
mod docker
default: lint
format:
cargo fmt --all
format-check:
cargo fmt --check --all
migrate:
sqlx migrate run --source gejdr-core/migrations
build $SQLX_OFFLINE="1":
cargo auditable build --bin gejdr-backend
cargo auditable build --bin gejdr-bot
build-release $SQLX_OFFLINE="1":
cargo auditable build --release --bin gejdr-backend
cargo auditable build --release --bin gejdr-bot
lint:
cargo clippy --all-targets
audit: build
cargo audit bin target/debug/gejdr-backend
cargo audit bin target/debug/gejdr-bot
audit-release: build-release
cargo audit bin target/release/gejdr-backend
cargo audit bin target/release/gejdr-bot
test:
cargo test --all-targets --all
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 coverage audit
docker-backend $SQLX_OFFLINE="1":
nix build .#dockerBackend
## Local Variables:
## mode: makefile
## End: