-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Justfile
34 lines (25 loc) · 947 Bytes
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
mod? local
# An alias for cargo +nightly xtask check
powerset *args:
cargo +nightly xtask powerset {{args}}
# An alias for cargo +nightly fmt --all
fmt *args:
cargo +nightly fmt --all {{args}}
lint *args:
cargo +nightly clippy --fix --allow-dirty --all-targets --all-features --allow-staged {{args}}
test *args:
#!/bin/bash
set -euo pipefail
# We use the nightly toolchain for coverage since it supports branch & no-coverage flags.
export RUSTUP_TOOLCHAIN=nightly
INSTA_FORCE_PASS=1 cargo llvm-cov clean --workspace
INSTA_FORCE_PASS=1 cargo llvm-cov nextest --branch --include-build-script --no-report {{args}}
# Do not generate the coverage report on CI
cargo insta review
cargo llvm-cov report --html
cargo llvm-cov report --lcov --output-path ./lcov.info
deny *args:
cargo deny {{args}} --all-features check
workspace-hack:
cargo hakari manage-deps
cargo hakari generate