forked from kubeshop/testkube-executor-init
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (31 loc) · 1.14 KB
/
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
44
45
46
47
NAME ?= testkube-executor-init
BIN_DIR ?= $(HOME)/bin
build:
go build -o $(BIN_DIR)/$(NAME) cmd/agent/main.go
.PHONY: test cover build
run:
EXECUTOR_PORT=8082 go run cmd/agent/main.go
mongo-dev:
docker run -p 27017:27017 mongo
docker-build:
docker build --network=host --build-arg HTTP_PROXY --build-arg HTTPS_PROXY -f build/agent/Dockerfile -t europe-docker.pkg.dev/asml-dpng-dev-01/asml-ngdp-test-registry/docker.io/kubeshop/testkube-executor-init:SNAPSHOT .
install-swagger-codegen-mac:
brew install swagger-codegen
test:
go test ./... -cover
test-e2e:
go test --tags=e2e -v ./test/e2e
test-e2e-namespace:
NAMESPACE=$(NAMESPACE) go test --tags=e2e -v ./test/e2e
cover:
@go test -failfast -count=1 -v -tags test -coverprofile=./testCoverage.txt ./... && go tool cover -html=./testCoverage.txt -o testCoverage.html && rm ./testCoverage.txt
open testCoverage.html
version-bump: version-bump-patch
version-bump-patch:
go run cmd/tools/main.go bump -k patch
version-bump-minor:
go run cmd/tools/main.go bump -k minor
version-bump-major:
go run cmd/tools/main.go bump -k major
version-bump-dev:
go run cmd/tools/main.go bump --dev