forked from mbtproject/mbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (38 loc) · 804 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
42
43
44
45
46
47
default: install
.PHONY: install
install: build_libgit2
go install ./...
.PHONY: build_libgit2
build_libgit2:
./scripts/build_libgit2.sh
.PHONY: build
build: clean
./scripts/build.sh
.PHONY: clean
clean:
rm -rf build
rm -rf vendor/libgit2/build
rm -rf vendor/libgit2/install
.PHONY: restore
restore:
go get -t
go get github.com/stretchr/testify
.PHONY: test
test: build_libgit2
go test -covermode=count ./e
go test -covermode=count ./lib
go test -covermode=count ./cmd
go test -covermode=count ./trie
go test -covermode=count ./intercept
go test -covermode=count ./graph
go test -covermode=count ./utils
go test -covermode=count .
.PHONY: showcover
showcover:
go tool cover -html=coverage.out
.PHONY: doc
doc:
go run ./scripts/gendoc.go
.PHONY: lint
lint:
gofmt -s -w **/*.go