20 lines
586 B
Makefile
20 lines
586 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
|
|
|
|
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'
|