forked from base-org/blob-archiver
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
42 lines (34 loc) · 799 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
build:
make -C ./archiver blob-archiver
make -C ./api blob-api
make -C ./validator blob-validator
.PHONY: build
build-docker:
docker compose build
.PHONY: build-docker
clean:
make -C ./archiver clean
make -C ./api clean
make -C ./validator clean
.PHONY: clean
test:
make -C ./archiver test
make -C ./api test
make -C ./validator test
.PHONY: test
integration:
docker compose down
docker compose up -d minio create-buckets
RUN_INTEGRATION_TESTS=true go test -v ./...
.PHONY: integration
vet:
go vet ./...
.PHONY: vet
fmt:
gofmt -s -w .
.PHONY: fmt
check: fmt vet clean build build-docker lint test integration
.PHONY: check
lint:
golangci-lint run -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 5m -e "errors.As" -e "errors.Is" ./...
.PHONY: lint