2018-05-04 23:13:40 +00:00
|
|
|
default:
|
|
|
|
deps: [test]
|
|
|
|
|
|
|
|
dl-deps:
|
|
|
|
desc: Downloads cli dependencies
|
|
|
|
cmds:
|
|
|
|
- go get -u github.com/golang/lint/golint
|
2019-03-26 21:50:42 +00:00
|
|
|
- go get -u github.com/golang/dep/cmd/dep
|
2018-05-04 23:13:40 +00:00
|
|
|
|
|
|
|
update-deps:
|
|
|
|
desc: Updates dependencies
|
|
|
|
cmds:
|
|
|
|
- dep ensure
|
|
|
|
- dep ensure -update
|
|
|
|
|
|
|
|
lint:
|
|
|
|
desc: Runs golint
|
|
|
|
cmds:
|
2019-04-16 16:00:15 +00:00
|
|
|
- go fmt $(go list ./... | grep -v /vendor/)
|
|
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
2018-05-04 23:13:40 +00:00
|
|
|
- golint $(ls *.go | grep -v "doc.go")
|
|
|
|
silent: true
|
|
|
|
|
|
|
|
test:
|
|
|
|
desc: Runs go tests
|
|
|
|
cmds:
|
|
|
|
- go test -race .
|
2019-04-16 16:00:15 +00:00
|
|
|
|
|
|
|
test-coverage:
|
|
|
|
desc: Runs go tests and calucates test coverage
|
|
|
|
cmds:
|
|
|
|
- go test -coverprofile=c.out .
|