-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (30 loc) · 817 Bytes
/
Makefile
File metadata and controls
46 lines (30 loc) · 817 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
39
40
41
42
43
44
45
46
go_build_flags=-tags=sqlite_unlock_notify
init:
cp -n .env.example .env || true
build:
docker-compose build
run: init
docker-compose up -d
stop:
docker-compose stop
restart:
docker-compose restart
tool:
docker-compose exec antibrut ./antibrut $(MAKECMDGOALS)
compile:
go build ${go_build_flags} -o ./bin/antibrut ./cmd/antibrut
generate:
go generate ./...
lint: go-lint proto-lint
go-lint:
golangci-lint run ./...
proto-lint:
cd proto && go run github.com/bufbuild/buf/cmd/buf lint
test:
go test -race -count 1 ./...
supertest:
go test -race -count 100 ./...
integration-test:
go test -race -tags integration -count 1 ./...
tests: supertest integration-test
.PHONY: init run stop restart tool build generate compile lint go-lint proto-lint test supertest integration-test tests testshort