-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (34 loc) · 844 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
.PHONY: proto
proto:
buf generate
.PHONY: mocks
mocks:
mockery --all --with-expecter=true --dir=./internal/store
.PHONY: test
test:
go test -v -cover -coverprofile=coverage.out ./...
.PHONY: local_cluster
local_cluster:
docker compose up
.PHONY: local_server
local_server:
go run cmd/kayak/main.go --id 1 --dir data/ --config server1.yaml --host localhost --console
.PHONY: clean_local
clean_local:
rm -rf data
.PHONY: local_integration
local_integration:
env KAYAK_INTEGRATION_TESTS=true go test -v ./kayak_test.go
.PHONY: integration_test
integration_test:
docker compose down
earthly +docker
docker compose up -d
env KAYAK_INTEGRATION_TESTS=true go test -v ./kayak_test.go
docker compose down
.PHONY: docker
docker:
docker build . -t kayak:latest
.PHONY: prometheus
prometheus:
prometheus --config.file=prometheus.yml