-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 1.11 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
.PHONY: run build run-job build-job test tidy deps-upgrade deps-clean-cache swaggo
# ==============================================================================
# Start Rest
run:
go run ./cmd/api/main.go start_server ./config/conf-local.yaml ./config/conf-params.yaml
build:
go build ./cmd/api/main.go
# ==============================================================================
# Start Job
run-job:
go run ./cmd/job/main.go start_server_job ./config/conf-local.yaml
build-job:
go build ./cmd/job/main.go
# ==============================================================================
# Modules support
test:
go test -cover ./...
tidy:
go mod tidy
go mod vendor
deps-upgrade:
# go get $(go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all)
go get -u -t -d -v ./...
go mod tidy
go mod vendor
deps-clean-cache:
go clean -modcache
# ==============================================================================
# Tools commands
swaggo:
echo "Starting swagger generating"
swag init -g **/**/*.go
dev-bak:
telegram_select_and_send_attachment "Gocell conf-local.yaml" ./config/conf-local.yaml