forked from snickers/snickers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 1.05 KB
/
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
.PHONY: all test build test_coverage
help:
@echo ' build ...................... go get the dependencies'
@echo ' run ........................ runs main.go'
@echo ' test ....................... runs tests locally'
@echo ' test_coverage .............. runs tests and generates coverage profile'
build:
@go get
@go get gopkg.in/mgo.v2
@go get github.com/onsi/ginkgo/ginkgo
@go get github.com/onsi/gomega
@cd $$GOPATH/src/github.com/snickers/hls && make clean && make dep
@go build
run: build
DYLD_LIBRARY_PATH=$$GOPATH/src/github.com/snickers/hls/build ./snickers
test: build
@go vet ./...
@DYLD_LIBRARY_PATH=$$GOPATH/src/github.com/snickers/hls/build ginkgo -r --slowSpecThreshold=20 --succinct .
test_coverage: build
@go get github.com/modocache/gover
@DYLD_LIBRARY_PATH=$$GOPATH/src/github.com/snickers/hls/build ginkgo -r --slowSpecThreshold=20 --cover --succinct .
@gover
@mv gover.coverprofile coverage.txt
lint:
go get -u github.com/alecthomas/gometalinter
gometalinter --install
gometalinter -disable=dupl ./... --deadline 300s