every.channel: sanitized baseline
This commit is contained in:
commit
897e556bea
258 changed files with 74298 additions and 0 deletions
17
scripts/coverage.sh
Executable file
17
scripts/coverage.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "${root}"
|
||||
|
||||
out_dir="${root}/tmp/coverage"
|
||||
mkdir -p "${out_dir}"
|
||||
|
||||
# Generates an HTML coverage report + a single-line summary.
|
||||
# (llvm-cov doesn't allow --summary-only together with --html, so we do LCOV + HTML.)
|
||||
exec nix develop --accept-flake-config -c bash -lc "
|
||||
set -euo pipefail
|
||||
cargo llvm-cov --workspace --lcov --output-path '${out_dir}/coverage.lcov'
|
||||
'${root}/scripts/coverage-summary.sh' '${out_dir}/coverage.lcov' | tee '${out_dir}/summary.txt'
|
||||
cargo llvm-cov --workspace --html --output-dir '${out_dir}/html'
|
||||
"
|
||||
Loading…
Add table
Add a link
Reference in a new issue