mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-08-28 13:06:56 +02:00
parent
a9f2fa2cdd
commit
291ab63224
11 changed files with 98 additions and 96 deletions
19
Justfile
19
Justfile
|
|
@ -1,6 +1,9 @@
|
|||
export CARGO_INCREMENTAL := '0'
|
||||
export RUSTFLAGS := '-Zmacro-backtrace -Cinstrument-coverage'
|
||||
export RUSTDOCFLAGS := '-Zmacro-backtrace -Cinstrument-coverage'
|
||||
export LLVM_PROFILE_FILE := "cov/cargo-test-%p-%m.profraw"
|
||||
grcov-binary := "--binary-path ./target/coverage/deps/"
|
||||
grcov-ignore := "--ignore-not-existing --ignore '../*' --ignore \"/*\" --ignore 'target/*'"
|
||||
grcov-binary := "--binary-path ./target/coverage/build/tengri"
|
||||
grcov-ignore := ""#--ignore-not-existing --ignore '../*' --ignore \"/*\" --ignore 'target/*'"
|
||||
|
||||
[private]
|
||||
default:
|
||||
|
|
@ -10,24 +13,20 @@ bacon:
|
|||
bacon -s
|
||||
|
||||
cov:
|
||||
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' \
|
||||
time cargo test -j4 --workspace --profile coverage
|
||||
time cargo test -j4 --workspace --profile coverage
|
||||
rm -rf target/coverage/html || true
|
||||
time grcov . -s . {{grcov-binary}} {{grcov-ignore}} -t html -o target/coverage/html && reset
|
||||
|
||||
cov-md:
|
||||
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' \
|
||||
time cargo test -j4 --workspace --profile coverage
|
||||
time cargo test -j4 --workspace --profile coverage
|
||||
time grcov . -s . {{grcov-binary}} {{grcov-ignore}} -t markdown | sort
|
||||
|
||||
cov-md-ci:
|
||||
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' \
|
||||
time cargo test -j4 --workspace --profile coverage -- --skip test_tui_engine
|
||||
time cargo test -j4 --workspace --profile coverage -- --skip test_tui_engine
|
||||
time grcov . -s . {{grcov-binary}} {{grcov-ignore}} -t markdown | sort
|
||||
|
||||
doc:
|
||||
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' RUSTDOCFLAGS='-Cinstrument-coverage' \
|
||||
cargo doc
|
||||
cargo doc
|
||||
|
||||
mode MODE:
|
||||
cargo run --example "mode_{{MODE}}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue