-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (24 loc) · 744 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (24 loc) · 744 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
.PHONY: test test-unit test-unit-race test-integration test-integration-race \
test-all test-race fmt vet up down
GOCACHE := /tmp/go-build
GO := go
GOTEST := $(GO) test -v
test: test-unit
test-unit:
GOCACHE=$(GOCACHE) $(GOTEST) -short ./...
test-integration:
GOCACHE=$(GOCACHE) $(GOTEST) -timeout 20m -tags=integration ./...
test-unit-race:
GOCACHE=$(GOCACHE) $(GOTEST) -race ./...
test-integration-race:
GOCACHE=$(GOCACHE) $(GOTEST) -race -timeout 20m -tags=integration ./...
test-all: test-unit test-integration
test-race: test-unit-race test-integration-race
fmt:
$(GO) fmt ./...
vet:
GOCACHE=$(GOCACHE) $(GO) vet ./...
up:
docker compose -f compose.dev.yaml up -d --build
down:
docker compose -f compose.dev.yaml down