-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
86 lines (70 loc) · 1.98 KB
/
Taskfile.yml
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
86
version: '3'
silent: true
tasks:
all:
desc: Performs all tasks from the building process
cmds:
- task: clean
- task: fmt
- task: build
- task: clippy
- task: test
build:
desc: Builds the workspace in debug mode
cmds:
- cmd: cargo +stable build --workspace
clean:
desc: Cleans all compilation artifacts
cmds:
- cmd: cargo clean
clippy:
desc: Runs clippy for the workspace and all targets
cmds:
- task: clippy-stable
- task: clippy-nightly
clippy-stable:
desc: Runs clippy for the workspace and all targets using stable channel
cmds:
- cmd: cargo +stable clippy --workspace --all-targets
clippy-nightly:
desc: Runs clippy for the workspace and all targets using nightly channel
cmds:
- cmd: cargo +nightly clippy --workspace --all-targets
cov:
desc: Generates code coverage report for the engine
cmds:
- task: clean
- cmd: ./tarpaulage.sh dtee
cov-editor:
desc: Generates code coverage report for the whole editor
cmds:
- task: clean
- cmd: ./tarpaulage.sh dte
doc:
desc: Generates the documentation for the workspace
cmds:
- cmd: cargo +stable doc --no-deps --document-private-items --workspace
doc-open:
desc: Generates documentation and opens it in browser
cmds:
- cmd: cargo +stable doc --no-deps --document-private-items --workspace --open
fmt:
desc: Runs the code formatter
cmds:
- cmd: cargo +nightly fmt
run1:
desc: Runs the editor with example input file ./examples/e1.dtb
cmds:
- cmd: cargo run -- ./examples/e1.dtb
run2:
desc: Runs the editor with example input file ./examples/e2.dtb
cmds:
- cmd: cargo run -- ./examples/e2.dtb
test:
desc: Runs all tests in debug mode
cmds:
- cmd: cargo +stable test --workspace
testn:
desc: Runs all tests in debug mode using nextest
cmds:
- cmd: cargo +stable nextest run --workspace