forked from nix-community/nh
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
44 lines (31 loc) · 1.14 KB
/
Copy pathJustfile
File metadata and controls
44 lines (31 loc) · 1.14 KB
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
38
39
40
41
42
#! /usr/bin/env -S just --justfile
# Recipes to check correctness
check: cargo-check clippy-check fmt-check taplo-check
cargo-check:
RUSTFLAGS="-Dwarnings" cargo check
clippy-check:
cargo clippy -- -W clippy::pedantic -W clippy::correctness -W clippy::suspicious -W clippy::cargo
fmt-check:
cargo fmt --check
taplo-check:
taplo fmt --check
# Automatic fixup recipes
fix: cargo-fix clippy-fix fmt-fix taplo-fmt
cargo-fix:
cargo fix --allow-dirty
clippy-fix:
cargo clippy --fix --allow-dirty -- -W clippy::pedantic -W clippy::correctness -W clippy::suspicious -W clippy::cargo
fmt-fix:
cargo fmt
taplo-fmt:
taplo fmt
test:
cargo nextest run
# Run the nh-deploy Stage-1 NixOS VM integration test (Task 15 capstone).
# Requires /dev/kvm. Builds the 3-node fleet (deployer + alpha@db + beta@web)
# and drives the real `nh deploy` binary over ssh.
deploy-test:
nix build --no-link --print-out-paths '.#checks.x86_64-linux.nh-deploy-vm'
# Build only the VM test driver (no boot) — useful where /dev/kvm is absent.
deploy-test-driver:
nix build --no-link --print-out-paths '.#checks.x86_64-linux.nh-deploy-vm.driver'