-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (21 loc) · 742 Bytes
/
Makefile
File metadata and controls
32 lines (21 loc) · 742 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
.PHONY: vet lint
default: vet get test
all: vet lint get test
get:
go get ./...
test:
go list ./... | grep -v /vendor/ | xargs -L1 go test -cover
testv:
go list ./... | grep -v /vendor/ | xargs -L1 go test -v -cover
race:
go list ./... | grep -v /vendor/ | xargs -L1 go test -race
vet:
go list ./... | grep -v /vendor/ | xargs -L1 go vet
lint:
go list ./... | grep -v /vendor/ | xargs -L1 golint
pilad: get
$(GOPATH)/bin/pilad
gox: get
gox -osarch="linux/amd64 darwin/amd64" -output "dist/{{.OS}}/{{.Arch}}/$(git rev-parse HEAD)/{{.Dir}}" ./pilad
release:
docker run --rm --name="piladb_release" -v "$(PWD)":/gopath/src/github.com/fern4lvarez/piladb -w /gopath/src/github.com/fern4lvarez/piladb tcnksm/gox:latest make gox