-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 855 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
VERSION=$(shell git describe --tags --dirty --always)
.PHONY: build
build:
go build -ldflags "-X 'github.com/conduitio-labs/conduit-connector-kinesis.version=${VERSION}'" -o conduit-connector-kinesis cmd/connector/main.go
.PHONY: test
test:
go test $(GOTEST_FLAGS) -race ./...
test-integration: up
go test $(GOTEST_FLAGS) -v -race ./...; ret=$$?; \
docker compose -f test/docker-compose.yml down -v; \
exit $$ret
.PHONY: generate
generate:
go generate ./...
.PHONY: install-tools
install-tools:
@echo Installing tools from tools.go
@go list -e -f '{{ join .Imports "\n" }}' tools.go | xargs -tI % go install %
@go mod tidy
.PHONY: lint
lint:
golangci-lint run -v
.PHONY: up
up:
docker compose -f test/docker-compose.yml up --quiet-pull -d --wait
.PHONY: down
down:
docker compose -f test/docker-compose.yml down -v --remove-orphans