-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
56 lines (43 loc) · 979 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
ANTLR_DIR = lib/antlr/generated
GENERATED_ANTLR_DIR = github.com/artie-labs/reader/lib/antlr/generated
.PHONY: antlr
antlr:
cd $(ANTLR_DIR); antlr -package generated -Dlanguage=Go *.g4
.PHONY: vet
vet:
go vet $(go list ./... | grep -v $(GENERATED_ANTLR_DIR))
.PHONY: static
static:
staticcheck $(go list ./... | grep -v $(GENERATED_ANTLR_DIR))
.PHONY: test
test:
go test ./...
.PHONY: mongo-itest
mongo-itest:
go run integration_tests/mongo/main.go
.PHONY: mssql-itest
mssql-itest:
go run integration_tests/mssql/main.go
.PHONY: mysql-itest
mysql-itest:
go run integration_tests/mysql/main.go
.PHONY: postgres-itest
postgres-itest:
go run integration_tests/postgres/main.go
.PHONY: race
race:
go test -race ./...
.PHONY: build
build:
goreleaser build --clean
.PHONY: release
release:
goreleaser release --clean
.PHONY: clean
clean:
go clean -testcache
.PHONY: upgrade
upgrade:
go get github.com/artie-labs/transfer
go mod tidy
echo "Upgrade complete"