-
Notifications
You must be signed in to change notification settings - Fork 1
/
grml.yaml
73 lines (68 loc) · 2.44 KB
/
grml.yaml
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
version: 2
project: orbit
env:
BINDIR: ${ROOT}/bin
commands:
clean:
help: clean the build files
exec: |
chmod -R 0750 "${BINDIR}" | true
rm -rf "${BINDIR}"
test:
help: run all go tests
exec: |
go test -race ./pkg/... ./internal/... ./cmd/...
generate:
help: generate all internal msgp code
exec: |
go generate ./internal/...
run:
help: run commands
commands:
simple:
help: run the simple example application.
commands:
client:
help: run the client of the simple example application.
deps:
- build.simple
exec: |
"${BINDIR}/simple-client"
server:
help: run the server of the simple example application.
deps:
- build.simple
exec: |
"${BINDIR}/simple-server"
build:
help: build commands. defaults to building everything.
deps:
- build.pkg
- build.orbit
- build.simple
- build.full
commands:
pkg:
help: build the orbit package.
exec: |
go build "${ROOT}/pkg/..."
orbit:
help: build the orbit application.
exec: |
go build -o "${BINDIR}/orbit" "${ROOT}/cmd/orbit/"
simple:
help: build the simple example application.
deps:
- build.orbit
exec: |
"${BINDIR}/orbit" gen --force "${ROOT}/examples/simple/hello/hello.orbit"
go build -o "${BINDIR}/simple-client" "${ROOT}/examples/simple/client"
go build -o "${BINDIR}/simple-server" "${ROOT}/examples/simple/service"
full:
help: build the simple example application.
deps:
- build.orbit
exec: |
"${BINDIR}/orbit" gen --force "${ROOT}/examples/full/api/api.orbit"
go build -o "${BINDIR}/full-client" "${ROOT}/examples/full/client"
go build -o "${BINDIR}/full-server" "${ROOT}/examples/full/server"