-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (37 loc) · 934 Bytes
/
Copy pathMakefile
File metadata and controls
60 lines (37 loc) · 934 Bytes
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
48
49
50
51
52
53
54
55
56
57
58
59
60
# Build binaries
sdb-build:
go build -o sdb cmd/sdb/main.go
sdb-cli-build:
go build -o sdb-cli cmd/sdb-cli/main.go
sdb-test-build:
go build -o sdb-test cmd/sdb-test/main.go
# Install binaries
sdb-install:
go install ./cmd/sdb
sdb-cli-install:
go install ./cmd/sdb-cli
sdb-test-install:
go install ./cmd/sdb-test
# Run binaries
sdb-run:
go run cmd/sdb/main.go
$(GOPATH)/bin/pkgsite:
go install golang.org/x/pkgsite/cmd/pkgsite@latest
pkgsite: $(GOPATH)/bin/pkgsite
pkgsite -http=:8080
### TESTING
.PHONY: test
test:
go test -v ./...
test-pretty:
go test ./... -json | tparse -all
test-integration:
go test -tags=integration ./internal/...
test-integration-pretty:
go test -tags=integration ./internal/... -json | tparse -all
coverage:
go test -v -cover -coverprofile=c.out ./...
coverage-html:
go tool cover -html=c.out -o coverage.html -func=c.out
coverage-func:
go tool cover -func=c.out