1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-24 22:53:52 +02:00
Files
starter/Makefile

56 lines
1.1 KiB
Makefile
Raw Normal View History

2023-09-13 13:48:19 +03:00
SERVICENAME=nikitin
SERVICEURL=gitlab.aescorp.ru/dsp_dev/claim/$(SERVICENAME)
2023-03-17 11:20:09 +03:00
FILEMAIN=./internal/v0/app/main.go
FILEAPP=./bin/app_race
2023-05-02 09:51:50 +03:00
NEW_REPO=github.com/ManyakRus/starter
2023-03-17 11:20:09 +03:00
run:
clear
2024-10-15 11:27:55 +03:00
./make_version.sh
2023-03-17 11:20:09 +03:00
go build -race -o $(FILEAPP) $(FILEMAIN)
# cd ./bin && \
./bin/app_race
mod:
clear
2024-10-15 11:27:55 +03:00
./make_version.sh
2023-05-19 16:05:54 +03:00
go get -u ./...
2024-11-12 17:09:27 +03:00
go mod tidy -compat=1.22.1
2023-03-17 11:20:09 +03:00
go mod vendor
go fmt ./...
build:
clear
2024-10-15 11:27:55 +03:00
./make_version.sh
2023-03-17 11:20:09 +03:00
go build -race -o $(FILEAPP) $(FILEMAIN)
lint:
clear
go fmt ./...
2023-07-20 15:54:11 +03:00
golangci-lint run ./...
gocyclo -over 10 ./
gocritic check ./...
staticcheck ./...
test.run:
2023-03-17 11:20:09 +03:00
clear
go fmt ./...
go test -coverprofile cover.out ./...
go tool cover -func=cover.out
newrepo:
sed -i 's+$(SERVICEURL)+$(NEW_REPO)+g' go.mod
find -name *.go -not -path "*/vendor/*"|xargs sed -i 's+$(SERVICEURL)+$(NEW_REPO)+g'
2023-09-13 13:48:19 +03:00
graph:
clear
image_packages ./ docs/packages.graphml
conn:
clear
image_connections ./ docs/connections.graphml $(SERVICENAME)
2024-03-15 11:45:51 +03:00
lines:
clear
2024-10-15 11:27:55 +03:00
./make_version.sh
2024-03-15 11:45:51 +03:00
go_lines_count ./ ./docs/lines_count.txt 10
2024-03-22 08:54:12 +03:00
licenses:
golicense -out-xlsx=./docs/licenses.xlsx $(FILEAPP)
2024-09-26 14:49:25 +03:00
gocyclo:
golangci-lint run ./... --disable-all -E gocyclo -v