generated from kubeshop/testkube-executor-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (28 loc) · 915 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
.PHONY: test cover
NAME ?= template
run:
EXECUTOR_PORT=8082 go run cmd/agent/main.go
mongo-dev:
docker run -p 27017:27017 mongo
docker-build:
docker build -t kubeshop/$(NAME)-runner -f build/agent/Dockerfile .
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