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