-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
123 lines (107 loc) · 4.22 KB
/
Taskfile.yaml
File metadata and controls
123 lines (107 loc) · 4.22 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
117
118
119
120
121
122
123
version: '3'
env:
GOPRIVATE: "github.com/synadia-io"
GOWORK: off
tasks:
install-deps:
deps: [install-godeps, install-protoc]
gen-schema:
dir: models/schema
cmds:
- go tool github.com/atombender/go-jsonschema --struct-name-from-title
--package models --tags json
--schema-output=io.nats.nex.v2.agent_register_request=../api_agent.go
--schema-output=io.nats.nex.v2.agent_register_response=../api_agent.go
--schema-output=io.nats.nex.v2.agent_remote_register_request=../api_agent.go
--schema-output=io.nats.nex.v2.agent_remote_register_response=../api_agent.go
--schema-output=io.nats.nex.v2.agent_heartbeat=../api_agent.go
--schema-output=io.nats.nex.v2.agent_list_workloads_request=../api_agent.go
--schema-output=io.nats.nex.v2.agent_list_workloads_response=../api_agent.go
--schema-output=io.nats.nex.v2.agent_ingress_data=../api_agent.go
--schema-output=io.nats.nex.v2.agent_ingress_msg=../api_agent.go
--schema-output=io.nats.nex.v2.start_workload_request=../api_shared.go
--schema-output=io.nats.nex.v2.start_workload_response=../api_shared.go
--schema-output=io.nats.nex.v2.stop_workload_request=../api_shared.go
--schema-output=io.nats.nex.v2.stop_workload_response=../api_shared.go
--schema-output=io.nats.nex.v2.lameduck_request=../api_shared.go
--schema-output=io.nats.nex.v2.lameduck_response=../api_shared.go
--schema-output=io.nats.nex.v2.agent_ping_response=../api_shared.go
--schema-output=shared=../api_shared.go
--schema-output=io.nats.nex.v2.node_info_request=../api_control.go
--schema-output=io.nats.nex.v2.node_info_response=../api_control.go
--schema-output=io.nats.nex.v2.node_ping_request=../api_control.go
--schema-output=io.nats.nex.v2.node_ping_response=../api_control.go
--schema-output=io.nats.nex.v2.auction_request=../api_control.go
--schema-output=io.nats.nex.v2.auction_response=../api_control.go
--schema-output=io.nats.nex.v2.clone_workload_request=../api_control.go
--schema-output=io.nats.nex.v2.clone_workload_response=../api_control.go
--schema-output=io.nats.nex.v2.node_agent_summary_response=../api_control.go
--schema-output=io.synadia.nex.event.nexnode_started=../events.go
--schema-output=io.synadia.nex.event.nexnode_lameduck=../events.go
--schema-output=io.synadia.nex.event.nexnode_stopped=../events.go
--schema-output=io.synadia.nex.event.agent_started=../events.go
--schema-output=io.synadia.nex.event.agent_stopped=../events.go
--schema-output=io.synadia.nex.event.agent_lameduckset=../events.go
--schema-output=io.synadia.nex.event.workload_started=../events.go
--schema-output=io.synadia.nex.event.workload_stopped=../events.go
--schema-output=io.synadia.nex.event.workload_triggered=../events.go
*.json
gen-native-schema:
dir: agents/native
cmds:
- go tool github.com/atombender/go-jsonschema --struct-name-from-title
--package native --tags json
--schema-output=gen=./gen_start_request.go
*.json
nex:
deps: [all-code-gen]
dir: cmd/nex
cmds:
- go build -o ../../target/nex .
test:
cmds:
- go clean -testcache
- task: test:cli
- task: test:client
- task: test:node
- task: test:agents
test:agents:
dir: agents
cmds:
- go test -v -cover -race ./...
test:cli:
dir: cmd/nex
cmds:
- go test -v -cover -race ./...
test:client:
dir: client
cmds:
- go test -v -cover -race ./...
test:node:
cmds:
- go test -v -cover -race ./...
update:
deps: [update:agents, update:cli, update:client, update:node]
update:agents:
dir: agents
cmds:
- go get -u -v ./...
- go mod tidy
- git add go.mod go.sum
update:cli:
dir: cli
cmds:
- go get -u -v ./...
- go mod tidy
- git add go.mod go.sum
update:client:
dir: client
cmds:
- go get -u -v ./...
- go mod tidy
- git add go.mod go.sum
update:node:
cmds:
- go get -u -v ./...
- go mod tidy
- git add go.mod go.sum