Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-11 17:45:57 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-02-11 17:47:38 +0300
commit78672a4f8a99a3fda63ccd9119f63639827617ab (patch)
treeb760f3276d1af02c78d3c4f46c9c75ac92e9559c /Makefile
parent8d0cdba657ec249a1815a8f83c8cda0031dbf190 (diff)
Enable testing framework
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e356ef5c..41fae2bd 100644
--- a/Makefile
+++ b/Makefile
@@ -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