This repository has been archived by the owner on May 24, 2023. It is now read-only.
generated from kubeshop/testkube-executor-template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
61 lines (43 loc) · 1.41 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: test cover build
CHART_NAME=cypress-executor
NAME ?= cypress
BIN_DIR ?= $(HOME)/bin
GITHUB_TOKEN ?= "SET_ME"
USER ?= $(USER)
NAMESPACE ?= "example-ns"
DATE ?= $(shell date -u --iso-8601=seconds)
COMMIT ?= $(shell git log -1 --pretty=format:"%h")
# TODO bump this port up - to be able to run multiple executors on devs machine
run-executor:
EXECUTOR_PORT=8084 go run cmd/agent/main.go
run-mongo-dev:
docker run -p 27017:27017 mongo
build:
go build -o $(BIN_DIR)/$(NAME)-executor cmd/agent/main.go
docker-build-executor:
docker build -t $(NAME)-executor -f build/agent/Dockerfile .
docker-build-runner:
docker build -t kubeshop/$(NAME)-runner -f build/agent/Dockerfile .
install-swagger-codegen-mac:
brew install swagger-codegen
test:
go test ./... -cover
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
prerelease:
go run cmd/tools/main.go release -d -a $(CHART_NAME)
release:
go run cmd/tools/main.go release -a $(CHART_NAME)
update-modules:
go mod tidy
go get -u ./...