Repository navigation
Expand file tree
/
Copy pathTaskfile.yml
More file actions
76 lines (62 loc) · 1.64 KB
/
Copy pathTaskfile.yml
File metadata and controls
76 lines (62 loc) · 1.64 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
# https://taskfile.dev
version: '3'
vars:
BENCH_TIME: 2s
tasks:
default:
desc: Show available tasks
cmds:
- task --list
build:
desc: Build all packages
cmds:
- go build ./...
test:
desc: Run all tests (verbose)
cmds:
- go test -v ./...
test:short:
desc: Run all tests
cmds:
- go test ./...
test:race:
desc: Run tests with the race detector
cmds:
- go test -race ./...
test:poison:
desc: Run the codec tests with the scratch poison harness (alloc stamps 0x5A instead of leaving reused memory; guards the zeroing contract in internal/celt/scratch.go)
cmds:
- go test -tags poison -count=1 ./internal/celt/... ./internal/packet/... ./opus/...
bench:
desc: Run all benchmarks
cmds:
- go test -bench=. -benchmem -benchtime={{.BENCH_TIME}} ./...
reftest:
desc: Run the libopus differential harness (build tag refc; requires the pinned libopus submodule and a C toolchain, skips if absent)
cmds:
- go test -tags refc ./internal/reftest/...
vectors:
desc: Fetch and verify the RFC 6716/8251 conformance vectors (not committed; sha256-checked)
cmds:
- scripts/fetch-vectors.sh
vet:
desc: Run go vet for amd64 and arm64
cmds:
- GOARCH=amd64 go vet ./...
- GOARCH=arm64 go vet ./...
lint:
desc: Run golangci-lint
cmds:
- golangci-lint run ./...
tidy:
desc: Tidy and verify go.mod
cmds:
- go mod tidy
- go mod verify
check:
desc: Full local gate (build, vet, lint, race tests)
cmds:
- task: build
- task: vet
- task: lint
- task: test:race