-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (29 loc) · 941 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
43
.PHONY: install dep build test teste2e testunit lint fmt clean run-rafka run-rafka-local testunit-local teste2e-local
default: fmt install test
install:
go install -v
dep:
dep ensure -v
build: fmt
CGO_ENABLED=1 go build -v -ldflags '-X main.VersionSuffix=$(shell git rev-parse HEAD)'
testunit-local:
go test -race
teste2e-local:
cd test && bundle install --frozen && ./end-to-end -v
lint:
golint
fmt:
test -z `go fmt 2>&1`
clean:
go clean
run-rafka-local: build
./rafka -c test/librdkafka.test.json
run-rafka: dep
docker-compose -f test/docker-compose.yml up --no-start --build
docker-compose -f test/docker-compose.yml start
testunit: run-rafka
docker-compose -f test/docker-compose.yml exec rafka make testunit-local
teste2e: run-rafka
docker-compose -f test/docker-compose.yml exec rafka make teste2e-local
test: run-rafka
docker-compose -f test/docker-compose.yml exec rafka make testunit-local teste2e-local