-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 804 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 804 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
38
.PHONY: default test
default: init
init:
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.3.0
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@v0.35.0
clean:
rm -rf ./build
linter:
fieldalignment -fix ./...
golangci-lint run -c .golangci.yml --timeout=5m -v --fix
lint:
golangci-lint run -c .golangci.yml --timeout=5m -v
test:
go test ./... .
race:
CB_VERSION=7.6.5 go test ./... -race .
tidy:
go mod tidy
cd example && go mod tidy && cd ..
cd example/grafana && go mod tidy && cd ../..
cd test/integration && go mod tidy && cd ../..
create-cluster:
bash scripts/create_cluster.sh --version $(version)
delete-cluster:
bash scripts/delete_cluster.sh
docker-build:
docker build --progress=plain -t docker.io/trendyoltech/dcp .