podal/justfile
Renovate Bot 4f7b5d4590
Some checks failed
Test / build (map[name:stable]) (push) Successful in 1m5s
Test / build (map[name:nightly]) (push) Successful in 1m18s
Release Please / Release-plz (push) Failing after 5s
Release Please / Docker image (push) Failing after 6s
chore(deps): update git.kemitix.net/kemitix/rust docker tag to v4
2025-01-16 14:34:12 +00:00

29 lines
718 B
Makefile

coverage-init:
cargo install grcov
rustup component add llvm-tools
test-in-docker:
docker run --rm -v $PWD:/app/ git.kemitix.net/kemitix/rust:latest cargo test
shell-in-docker:
docker run --rm -it -v $PWD:/app/ git.kemitix.net/kemitix/rust:latest bash
coverage:
#!/usr/bin/env bash
set -e
rm -rf ./target
just clean
export RUSTFLAGS="-Zinstrument-coverage" LLVM_PROFILE_FILE="just-%p-%m.profraw"
cargo +nightly build
cargo +nightly test
just generate
just server
generate:
grcov . --binary-path ./target/debug/ -s . -t html --branch --ignore-not-existing --ignore "./target/" -o ./coverage/
server:
cd ./coverage && python3 -m http.server 8001
clean:
rm -rf ./*.prof* ./coverage/