From c13fa5162396cad7abc6a1134513a61256ddacf4 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 10 Jan 2025 08:46:18 +0000 Subject: [PATCH] build: added justfile --- justfile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..051fc1c --- /dev/null +++ b/justfile @@ -0,0 +1,36 @@ +build: + #!/usr/bin/env bash + set -e + export RUSTFLAGS="-Cdebuginfo=2 -Cstrip=none --cfg=tarpaulin -Cinstrument-coverage -Clink-dead-code" + cargo fmt + cargo fmt --check + cargo clippy --no-deps --fix --allow-dirty + cargo machete + # cargo build + cargo tarpaulin --engine llvm --tests --line --skip-clean --out Html Lcov + # cargo llvm-cov --html --tests + # rm *.profraw + # cargo test + # cargo doc + # cargo test --example get + +build-mutations: build mutations + +mutations: + cargo mutants --jobs 4 --baseline skip + +# doc-test: +# cargo doc +# cargo test +# cargo test --example get + +jj-next: + jj edit main --ignore-immutable + just jj-next-test + +jj-next-test: + jj next --edit + jj bookmark move next --allow-backwards + just build + jj bookmark move main + just jj-next-test