-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
41 lines (32 loc) · 879 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
35
36
37
38
39
40
41
version=0.3.1
.PHONY: all
all:
@echo "make <cmd>"
@echo ""
@echo "commands:"
@echo " build - go build, vet & lint"
@echo " coverage - generate a test coverage report"
@echo " deps - pull and setup dependencies"
@echo " install - run go install for all sub packages"
@echo " test - run tests"
@echo " tools - go gets a bunch of tools for development"
@echo " update_deps - update deps lock file"
build:
@go build ./...
@go vet ./...
@golint ./...
coverage:
@go test -cover -v ./...
deps:
@glock sync -n github.com/crowdriff/golog < Glockfile
install:
@go install ./...
test:
@ginkgo -r
tools:
go get github.com/robfig/glock
go get github.com/golang/lint/golint
go get github.com/onsi/ginkgo/ginkgo
go get github.com/onsi/gomega
update_deps:
@glock save -n github.com/crowdriff/golog > Glockfile