-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
42 lines (36 loc) · 827 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
LDFLAGS += -X "main.BuildTimestamp=$(shell date -u "+%Y-%m-%d %H:%M:%S")"
LDFLAGS += -X "main.Version=$(shell git rev-parse HEAD)"
.PHONY: init
init:
go get -u golang.org/x/tools/cmd/goimports
go get -u github.com/golang/lint/golint
go get -u github.com/Masterminds/glide
@chmod +x ./hack/check.sh
@chmod +x ./hooks/pre-commit
@echo "Install pre-commit hook"
@ln -s $(shell pwd)/hooks/pre-commit $(shell pwd)/.git/hooks/pre-commit || true
.PHONY: setup
setup: init
git init
glide init
.PHONY: check
check:
@./hack/check.sh ${scope}
.PHONY: ci
ci: init
@glide install
@make check
@make test
.PHONY: test
test:
go test ./leakybuffer
go test ./bitset
go test ./bloomfilter
go test ./hashring
go test ./lrucache
go test ./trie
go test ./sort
go test ./avl
go test ./guid
go test ./graph
go test ./dag