kx-utils/justfile

39 lines
849 B
Makefile
Raw Normal View History

2025-01-10 08:46:18 +00:00
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
2025-01-09 21:27:08 +00:00
cargo machete
2025-01-10 08:46:18 +00:00
# cargo build
cargo tarpaulin --engine llvm --tests --line --skip-clean --out Html Lcov
2025-01-10 18:03:06 +00:00
cargo llvm-cov --html --tests
if test -f *.profraw ; then
for RAW in *.profraw ; do rm $RAW ; done
fi
2025-01-10 08:46:18 +00:00
# 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