forked from cloudfoundry-community/github-pr-resource
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 632 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 632 Bytes
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
all: test check in out
@# for bin in check in out; do go build -o "build/${bin}" -ldflags="-s -w" -v "cmd/${bin}/main.go"; done
generate: github.go git.go
go generate ./...
.PHONY: test
test: generate
gofmt -s -l -w .
go vet -v ./...
go test -race -v ./...
.PHONY: e2e
e2e: test
go test -race -v ./... -tags=e2e
check: cmd/check/main.go
CGO_ENABLED=0 \
go build -o "build/check" -ldflags="-s -w" -v "cmd/check/main.go"
in: cmd/in/main.go
CGO_ENABLED=0 \
go build -o "build/in" -ldflags="-s -w" -v "cmd/in/main.go"
out: cmd/out/main.go
CGO_ENABLED=0 \
go build -o "build/out" -ldflags="-s -w" -v "cmd/out/main.go"