-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
30 lines (23 loc) · 761 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
up:
@docker compose up -d
down:
@docker compose down
cli:
docker run -it --rm --net clickhouse-go_clickhouse --link clickhouse:clickhouse-server yandex/clickhouse-client --host clickhouse-server
test:
@go install -race -v
@go test -race -timeout 30s -count=1 -v .
@go test -race -timeout 30s -count=1 -v ./tests/...
lint:
golangci-lint run || :
gocritic check -disable=singleCaseSwitch ./... || :
contributors:
@git log --pretty="%an <%ae>%n%cn <%ce>" | sort -u -t '<' -k 2,2 | LC_ALL=C sort | \
grep -v "users.noreply.github.com\|GitHub <noreply@github.com>" \
> contributors/list
staticcheck:
staticcheck ./...
codegen: contributors
@cd lib/column && go run codegen/main.go
@go-licenser -licensor "ClickHouse, Inc."
.PHONY: contributors