-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
56 lines (45 loc) · 920 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
48
49
50
51
52
53
54
55
56
.PHONY: all
all:
make clean
make generate
make test
.PHONY: static
static:
staticcheck ./...
.PHONY: vet
vet:
go vet ./...
.PHONY: test
test:
go test ./...
.PHONY: race
race:
go test -race ./...
.PHONY: clean
clean:
go clean -testcache
.PHONY: generate
generate:
go get github.com/maxbrunsfeld/counterfeiter/v6
go generate ./...
go mod tidy
.PHONY: build
build:
goreleaser build --clean
.PHONY: release
release:
goreleaser release --clean
.PHONY: bench_size
bench_size:
go test ./lib/size -bench=Bench -benchtime=10s
go test ./lib/optimization -bench=Bench -benchtime=10s
.PHONY: bench_typing
bench_typing:
go test ./lib/typing/... -bench=Bench -benchtime=20s
go test ./lib/debezium -bench=Bench -benchtime=20s
.PHONY: bench_redshift
bench_redshift:
go test ./clients/redshift -bench=Bench -benchtime=20s
.PHONY: bench_mongo
bench_mongo:
go test ./lib/cdc/mongo -bench=Bench -benchtime=20s