This repository has been archived on 2024-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
core-old/Makefile
Dawid Wysokiński 1caad44e51
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
fix: player/tribe snapshot - clean up data only when Special = false
2022-12-28 11:25:23 +01:00

47 lines
1.5 KiB
Makefile

.PHONY: install-git-hooks
install-git-hooks:
@echo "Installing git hooks..."
pre-commit install --hook-type pre-commit
pre-commit install --hook-type commit-msg
.PHONY: install-counterfeiter
install-counterfeiter:
@echo "Installing github.com/maxbrunsfeld/counterfeiter..."
cd ./internal/tools && go install github.com/maxbrunsfeld/counterfeiter/v6
.PHONY: install-swag
install-swag:
@echo "Installing github.com/swaggo/swag..."
cd ./internal/tools && go install github.com/swaggo/swag/cmd/swag
.PHONY: install-golangci-lint
install-golangci-lint:
@echo "Installing github.com/golangci/golangci-lint..."
cd ./internal/tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint
.PHONY: install-tools
install-tools: install-counterfeiter install-swag install-golangci-lint
.PHONY: install
install: install-tools install-git-hooks
.PHONY: generate
generate: install-counterfeiter install-swag
@echo "Running go generate..."
go generate ./...
.PHONY: create-job-update-data
create-job-update-data:
kubectl create job --from=cronjob/twhelp-job-update-data-dev twhelp-job-update-data
.PHONY: create-job-update-ennoblements
create-job-update-ennoblements:
kubectl create job --from=cronjob/twhelp-job-update-ennoblements-dev twhelp-job-update-ennoblements
.PHONY: create-job-create-snapshots
create-job-create-snapshots:
kubectl create job --from=cronjob/twhelp-job-create-snapshots-dev twhelp-job-create-snapshots
.PHONY: create-job-clean-up
create-job-clean-up:
kubectl create job --from=cronjob/twhelp-job-clean-up-dev twhelp-job-clean-up