kxio/justfile
Renovate Bot 4d546ee57c
All checks were successful
Test / build (map[name:nightly]) (push) Successful in 6m54s
Test / build (map[name:stable]) (push) Successful in 7m16s
Release Please / Release-plz (push) Successful in 13s
chore(deps): update git.kemitix.net/kemitix/rust docker tag to v4
2025-01-16 11:59:43 +00:00

32 lines
841 B
Makefile

build:
#!/usr/bin/env bash
set -e
cargo fmt
cargo fmt --check
cargo hack clippy
cargo hack build
cargo hack test
cargo doc
cargo test --example get
cargo mutants --jobs 4
test-in-docker:
docker run --rm -v $PWD:/app/ git.kemitix.net/kemitix/rust:latest cargo test
shell-in-docker:
docker run --rm -it -v $PWD:/app/ git.kemitix.net/kemitix/rust:latest bash
doc-test:
cargo doc
cargo test
cargo test --example get
install-hooks:
@echo "Installing git hooks"
git config core.hooksPath .git-hooks
validate-dev-branch:
git rebase -i origin/main -x 'cargo build --features "fs,network"'
git rebase -i origin/main -x 'cargo test --features "fs,network"'
git rebase -i origin/main -x 'cargo clippy --features "fs,network" -- -D warnings -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used'