-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
116 lines (96 loc) · 2.75 KB
/
Taskfile.yml
File metadata and controls
116 lines (96 loc) · 2.75 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '3'
vars:
GOLANGCI_LINT_VERSION: v2.8.0
env:
CGO_ENABLED: 0
tasks:
default:
cmds:
- task: build
build:
desc: Build the aida binary
cmds:
- go build -o bin/aida ./cmd/aida
sources:
- ./**/*.go
- go.mod
- go.sum
generates:
- bin/aida
install:
desc: Install aida to /usr/local/bin
cmds:
- task: build
- sudo cp bin/aida /usr/local/bin/aida
install:go:
desc: Install aida to GOPATH/bin
cmds:
- go install ./cmd/aida
omnidist:init:
desc: Bootstrap Omnidist workspace once
cmds:
- |
if [ -f .omnidist/omnidist.yaml ]; then
echo ".omnidist/omnidist.yaml already exists; skipping init"
else
npx -y @omnidist/omnidist@latest init
fi
omnidist:ci:
desc: Generate Omnidist GitHub release workflow once
cmds:
- |
if [ -f .github/workflows/omnidist-release.yml ]; then
echo ".github/workflows/omnidist-release.yml already exists; skipping ci generation"
else
npx -y @omnidist/omnidist@latest ci
fi
omnidist:build:
desc: Build Omnidist artifacts
cmds:
- npx -y @omnidist/omnidist@latest --profile aida build
omnidist:stage:
desc: Stage Omnidist npm artifacts
cmds:
- npx -y @omnidist/omnidist@latest --profile aida npm stage
omnidist:verify:
desc: Verify Omnidist staged npm artifacts
cmds:
- npx -y @omnidist/omnidist@latest --profile aida npm verify
lint:
desc: Run golangci-lint
cmds:
- golangci-lint run --timeout 5m
lint:install:
desc: Install golangci-lint
cmds:
- go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@{{.GOLANGCI_LINT_VERSION}}
test:
desc: Run tests
cmds:
- CGO_ENABLED=1 go test -v -race -coverprofile=coverage.out ./...
test:integration:
desc: Run opt-in Codex ACP integration tests
cmds:
- AIDA_RUN_ACP_INTEGRATION=1 go test -tags='integration codex' -v ./internal/runtimeexec
test:integration:opencode:
desc: Run opt-in OpenCode ACP integration tests
cmds:
- AIDA_RUN_ACP_INTEGRATION=1 go test -tags='integration opencode' -v ./internal/runtimeexec
test:integration:gemini:
desc: Run opt-in Gemini ACP integration tests
cmds:
- AIDA_RUN_ACP_INTEGRATION=1 go test -tags='integration gemini' -v ./internal/runtimeexec
test:coverage:
desc: Run tests with coverage report
cmds:
- go test -v -race -coverprofile=coverage.out ./...
- go tool cover -html=coverage.out -o coverage.html
clean:
desc: Clean build artifacts
cmds:
- rm -rf bin/
- rm -f coverage.out coverage.html
run:
desc: Run aida with args
cmds:
- go run ./cmd/aida {{.CLI_ARGS}}