Add justfile
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
This commit is contained in:
parent
37d8b1f5e8
commit
12c43bf9ab
30
justfile
Normal file
30
justfile
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Lists the available actions
|
||||||
|
default:
|
||||||
|
@just --list
|
||||||
|
|
||||||
|
# Generate test coverage report. Only works on amd64 linux, and requires pycobertura to be installed, as well as cargo-tarpaulin
|
||||||
|
coverage:
|
||||||
|
cargo tarpaulin --out Xml
|
||||||
|
pycobertura show --format html --output coverage.html cobertura.xml
|
||||||
|
|
||||||
|
# Remove generated files
|
||||||
|
clean:
|
||||||
|
cargo clean
|
||||||
|
rm cobertura.xml
|
||||||
|
rm coverage.html
|
||||||
|
|
||||||
|
# Check code style
|
||||||
|
lint:
|
||||||
|
cargo clippy
|
||||||
|
|
||||||
|
# Format the code
|
||||||
|
fmt:
|
||||||
|
cargo +nightly fmt
|
||||||
|
|
||||||
|
# Run the normal tests
|
||||||
|
test:
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
# Run tests without the standard library
|
||||||
|
test-no-std:
|
||||||
|
cargo test --no-default-features --features alloc
|
Loading…
Reference in New Issue
Block a user