-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
40 lines (27 loc) · 949 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
-include .env
export $(shell sed 's/=.*//' .env)
indexer:
cd cmd/indexer && go run . -c ../../configs/dipdup.yml
api:
cd cmd/api && go run . -c ../../configs/dipdup.yml
private_api:
cd cmd/private_api && go run . -c ../../configs/dipdup.yml
generate:
go generate -v ./internal/storage ./internal/storage/types ./pkg/node
lint:
golangci-lint run
test:
go test -p 8 -timeout 60s ./...
cover:
go test ./... -coverpkg=./... -coverprofile ./coverage.out
go tool cover -func ./coverage.out
api-docs:
cd cmd/api && swag init --md markdown -parseDependency --parseInternal --parseDepth 1
ga:
go generate -v ./internal/storage ./internal/storage/types ./pkg/node
cd cmd/api && swag init --md markdown -parseDependency --parseInternal --parseDepth 1
license-header:
update-license -path=./ -license=./HEADER
build:
docker-compose up -d --build
.PHONY: indexer api generate test lint cover api-docs ga license-header build private_api