-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
85 lines (68 loc) · 1.79 KB
/
Taskfile.yml
File metadata and controls
85 lines (68 loc) · 1.79 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
silent: true
tasks:
build:
desc: Builds in debug mode
cmds:
- cmd: cargo build
clean:
desc: Cleans all targets
cmds:
- cmd: cargo clean
clippy:
desc: Runs clippy for all targets
cmds:
- cmd: cargo clippy --all-targets
cov:
desc: Generates the code coverage report in text format printed to stdout
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo llvm-cov --no-cfg-coverage
cov-html:
desc: Generates the code coverage report in HTML format and opens it in a browser
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo llvm-cov --no-cfg-coverage --html --open
cov-summary:
desc: Generates the code coverage summary report in JSON format
cmds:
- cmd: cargo llvm-cov clean
- cmd: cargo llvm-cov --no-cfg-coverage --json --summary-only | jq
cov-badge:
desc: Generates the code coverage badge
cmds:
- cmd: cargo build
- cmd: cargo llvm-cov clean
- cmd: cargo llvm-cov --no-cfg-coverage --json --summary-only | coverio --collapse --tag cov-badge-coverio
doc:
desc: Generates documentation
cmds:
- cmd: cargo doc --no-deps
doc-open:
desc: Generates documentation and opens it in browser
cmds:
- cmd: cargo doc --no-deps --open
fmt:
desc: Runs code formatter
cmds:
- cmd: cargo fmt
help:
desc: Runs short help option
cmds:
- cmd: cargo run -- -h
help-long:
desc: Runs long help option
cmds:
- cmd: cargo run -- --help
install:
desc: Builds and installs release version
cmds:
- cmd: cargo install biff --path=. --force
test:
desc: Runs tests in debug mode
cmds:
- cmd: cargo test
testn:
desc: Runs tests in debug mode
cmds:
- cmd: cargo nextest run