github.com/kubeshop/testkube@v1.17.23/contrib/executor/jmeterd/Makefile (about) 1 REPOSITORY ?= kubeshop 2 NAME ?= testkube-jmeterd-executor 3 SLAVES_NAME ?= testkube-jmeterd-slave 4 LOCAL_TAG ?= 999.0.0 5 BIN_DIR ?= $(HOME)/bin 6 7 .PHONY: build 8 build: 9 go build -o $(BIN_DIR)/$(NAME) cmd/agent/main.go 10 11 .PHONY: build-local-linux 12 build-local-linux: 13 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o dist/runner cmd/agent/main.go 14 15 .PHONY: run 16 run: 17 EXECUTOR_PORT=8082 go run cmd/agent/main.go ${run_args} 18 19 .PHONY: docker-build 20 docker-build: 21 docker build -t $(REPOSITORY)/$(NAME) -f build/agent/Dockerfile . 22 23 .PHONY: docker-build-local 24 docker-build-local: build-local-linux 25 docker build -t $(REPOSITORY)/$(NAME):$(LOCAL_TAG) -f build/agent/local.Dockerfile . 26 27 docker-build-slaves: 28 docker build -t $(REPOSITORY)/$(SLAVES_NAME):$(LOCAL_TAG) -f build/slaves/Dockerfile . 29 30 .PHONY: kind-load-local 31 kind-load-local: build-local-linux 32 kind load docker-image kubeshop/testkube-jmeterd-executor:999.0.0 33 34 .PHONY: test 35 test: 36 go test ./... -cover 37 38 .PHONY: integration-test 39 integration-test: 40 INTEGRATION=y gotestsum --format pkgname -- -run _Integration -cover ./... 41 42 .PHONY: cover 43 cover: 44 @go test -failfast -count=1 -v -tags test -coverprofile=./testCoverage.txt ./... && go tool cover -html=./testCoverage.txt -o testCoverage.html && rm ./testCoverage.txt 45 open testCoverage.html 46 47 .PHONY: version-bump 48 version-bump: version-bump-patch 49 50 .PHONY: version-bump-patch 51 version-bump-patch: 52 go run cmd/tools/main.go bump -k patch 53 54 .PHONY: version-bump-minor 55 version-bump-minor: 56 go run cmd/tools/main.go bump -k minor 57 58 .PHONY: version-bump-major 59 version-bump-major: 60 go run cmd/tools/main.go bump -k major 61 62 .PHONY: version-bump-dev 63 version-bump-dev: 64 go run cmd/tools/main.go bump --dev