2024-11-01 08:54:55 +00:00
|
|
|
build:
|
2024-11-03 11:36:20 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
2024-11-02 12:48:09 +00:00
|
|
|
cargo fmt
|
2024-11-01 19:08:56 +00:00
|
|
|
cargo fmt --check
|
2024-11-03 11:36:20 +00:00
|
|
|
cargo hack clippy
|
|
|
|
cargo hack build
|
|
|
|
cargo hack test
|
2024-11-02 12:48:09 +00:00
|
|
|
cargo doc
|
2024-11-09 07:52:42 +00:00
|
|
|
cargo test --example get
|
2024-11-01 08:54:55 +00:00
|
|
|
|
2024-04-08 14:33:39 +01:00
|
|
|
install-hooks:
|
|
|
|
@echo "Installing git hooks"
|
|
|
|
git config core.hooksPath .git-hooks
|
2024-04-28 08:25:51 +01:00
|
|
|
|
|
|
|
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'
|