-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathTaskfile.yml
More file actions
68 lines (55 loc) · 1.48 KB
/
Copy pathTaskfile.yml
File metadata and controls
68 lines (55 loc) · 1.48 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
version: "3"
vars:
CONFIG: '{{default "telecodex.toml" .CONFIG}}'
tasks:
default:
desc: Show available tasks
cmds:
- task --list
init-config:
desc: Create telecodex.toml from the example if it does not exist
cmds:
- >-
{{if eq OS "windows"}}cmd /C "if exist \"{{.CONFIG}}\" (echo Config already exists) else (copy /Y \"telecodex.toml.example\" \"{{.CONFIG}}\" >NUL && echo Created {{.CONFIG}})"{{else}}sh -c 'if [ -f "{{.CONFIG}}" ]; then echo "Config already exists"; else cp "telecodex.toml.example" "{{.CONFIG}}" && echo "Created {{.CONFIG}}"; fi'{{end}}
build:
desc: Build debug binary
cmds:
- cargo build
build-release:
desc: Build release binary
cmds:
- cargo build --release
run:
desc: Run Telecodex with a config file
cmds:
- cargo run -- {{.CONFIG}}
run-release:
desc: Run Telecodex in release mode with a config file
cmds:
- cargo run --release -- {{.CONFIG}}
test:
desc: Run unit tests
cmds:
- cargo test
fmt:
desc: Format the codebase
cmds:
- cargo fmt
fmt-check:
desc: Check formatting without rewriting files
cmds:
- cargo fmt --check
check:
desc: Run cargo check
cmds:
- cargo check
clippy:
desc: Run clippy with warnings denied
cmds:
- cargo clippy --all-targets --all-features -- -D warnings
verify:
desc: Run the full local validation suite
deps:
- fmt-check
- test
- clippy