-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
69 lines (55 loc) · 1.34 KB
/
Copy pathTaskfile.yml
File metadata and controls
69 lines (55 loc) · 1.34 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
version: '3'
set: [pipefail]
vars:
IMAGE: envsubst
tasks:
default:
desc: List all available tasks
silent: true
cmds:
- task --list
test:
desc: Run unit and integration tests
cmds:
- cargo xtask test
test:coverage:
desc: Run tests with LLVM coverage (HTML report under target/llvm-cov/)
cmds:
- cargo llvm-cov --html
lint:
desc: Run Clippy and formatting check
cmds:
- cargo xtask lint
fmt:
desc: Auto-format source files
cmds:
- cargo xtask fmt
build:
desc: Debug build
cmds:
- cargo build
build:release:
desc: Release build
cmds:
- cargo build --release
docker:build:
desc: >
Build the default image variant for the current platform (tag: dev).
Override the tag: task docker:build IMAGE_TAG=mytest
vars:
IMAGE_TAG: "{{.IMAGE_TAG | default \"dev\"}}"
cmds:
- cargo xtask docker-build {{.IMAGE_TAG}}
docker:build:all:
desc: Build all four image variants for the current platform
cmds:
- cargo xtask docker-build-all
docker:test:
desc: Build default image and run Docker integration tests
cmds:
- cargo xtask docker-build
- cargo xtask docker-test {{.IMAGE}}:dev
ci:
desc: Full CI pipeline — test, lint, docker-build, docker-test
cmds:
- cargo xtask ci