-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathJustfile
More file actions
37 lines (30 loc) · 901 Bytes
/
Justfile
File metadata and controls
37 lines (30 loc) · 901 Bytes
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
35
36
37
# Build everything
build:
cargo build --all-targets --all-features
# Run all tests using nextest
test:
#!/bin/bash
set -euo pipefail
if command -v cargo-nextest &>/dev/null; then
cargo nextest run --all-features
else
cargo test --all-targets --all-features
fi
# https://github.com/rust-lang/cargo/issues/6669
cargo test --doc --all-features
# Check formatting
fmt-check:
cargo fmt -- --check -l
# Run clippy
clippy:
cargo clippy --all-targets --all-features -- -D warnings
# Full lint check (formatting + clippy), mirrors CI
lint: fmt-check clippy
# Run semver checks against the last published version
semver-check:
cargo semver-checks
# Run the selftest (pulls busybox, creates artifacts, verifies referrers)
selftest:
cargo run --example ocidir -- selftest
# Lint and test (used by CI, and for local development)
ci: lint test