-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
34 lines (27 loc) · 885 Bytes
/
Makefile
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
PACKAGES=$(shell go list ./... | grep -v /vendor/)
help:
@echo 'Available commands:'
@echo
@echo 'Usage:'
@echo ' make deps Install go deps.'
@echo ' make restore Restore all dependencies.'
@echo ' make ci Run in CI (e.g. Travis).'
@echo ' make test Runs tests.'
@echo ' make clean Clean the directory tree.'
@echo
test: ## run tests, except integration tests
@go test -v ${RACE} ${PACKAGES}
deps:
go get -u github.com/tcnksm/ghr
go get -u github.com/mitchellh/gox
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/onsi/gomega
go get -u github.com/onsi/ginkgo/ginkgo
go get -u github.com/golang/lint/golint
lint:
@golint
vet: ## run go vet
@test -z "$$(go vet ${PACKAGES} 2>&1 | grep -v '*composite literal uses unkeyed fields|exit status 0)' | tee /dev/stderr)"
ci: lint vet test
restore:
@dep ensure