forked from CircleCI-Public/circleci-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 657 Bytes
/
Makefile
File metadata and controls
42 lines (31 loc) · 657 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
default: build
GOOS=$(shell go env GOOS)
GOARCH=$(shell go env GOARCH)
build: always
go build -o build/$(GOOS)/$(GOARCH)/circleci
build-all: build/linux/amd64/circleci build/darwin/amd64/circleci
build/%/amd64/circleci: always
GOOS=$* GOARCH=amd64 go build -v -o $@ .
.PHONY: clean
clean:
go clean -i
rm -rf build
.PHONY: test
test:
go test -v ./...
.PHONY: cover
cover:
go test -race -coverprofile=coverage.txt ./...
.PHONY: lint
lint:
gometalinter ./...
.PHONY: doc
doc:
godoc -http=:6060
.PHONY: dev
dev:
go get golang.org/x/tools/cmd/godoc
go get -u github.com/alecthomas/gometalinter
gometalinter --install
.PHONY: always
always: