diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-11 17:45:57 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-11 17:47:38 +0300 |
commit | 78672a4f8a99a3fda63ccd9119f63639827617ab (patch) | |
tree | b760f3276d1af02c78d3c4f46c9c75ac92e9559c /Makefile | |
parent | 8d0cdba657ec249a1815a8f83c8cda0031dbf190 (diff) |
Enable testing framework
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -19,3 +19,24 @@ gitlab-pages: $(GO_FILES) update: godep save ./... + +verify: fmt vet lint complexity test + +fmt: + go fmt ./... | awk '{ print "Please run go fmt"; exit 1 }' + +vet: + go get golang.org/x/tools/cmd/vet + go vet + +lint: + go get github.com/golang/lint/golint + golint . | ( ! grep -v "^$$" ) + +complexity: + go get github.com/fzipp/gocyclo + gocyclo -over 9 $(wildcard *.go) + +test: + go get golang.org/x/tools/cmd/cover + go test ./... -cover |