forked from nickpiaddo/rsfdisk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
44 lines (34 loc) · 875 Bytes
/
Justfile
File metadata and controls
44 lines (34 loc) · 875 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
38
39
40
41
42
43
44
alias d := doc
alias t := test
alias tu := test-unit
alias td := test-doc
alias tdu := test-doc-unit
alias ta := test-all
packages := "-p rsfdisk-sys -p rsfdisk"
dependencies := ""
# Build the library
default:
cargo build {{packages}}
# Build the library documentation
doc:
cargo doc --no-deps {{packages}} {{dependencies}}
# Publish crate to crates.io
do-publish:
cargo publish
# Dry run cargo publish
publish: test-all doc
cargo publish --dry-run
# Run all unit/integration tests
test:
cargo nextest run {{packages}}
# Run unit test named TESTNAME
test-unit TESTNAME:
cargo nextest run {{TESTNAME}} {{packages}}
# Run doc tests
test-doc:
cargo test --doc {{packages}}
# Run doc tests containing the string [TESTNAME]
test-doc-unit TESTNAME:
cargo test --doc {{TESTNAME}} {{packages}}
# Run unit, integration, and doc tests
test-all: test test-doc