-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (35 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
52 lines (35 loc) · 1.11 KB
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
48
49
50
51
52
ACCOUNT ?= HIMSAI724
NAME ?= testkube-executor-pytest
BIN_DIR ?= $(HOME)/bin
DEPLOY_TAG ?= 1.0.2
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 -t $(ACCOUNT)/$(NAME):$(DEPLOY_TAG) -f build/agent/Dockerfile .
docker-push:
docker push $(ACCOUNT)/$(NAME):$(DEPLOY_TAG)
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