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

25 lines
676 B
Makefile
Raw Normal View History

.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-tools
install-tools:
@echo "Installing required tools..."
2022-07-24 12:06:31 +00:00
cd ./internal/tools && go install \
github.com/golangci/golangci-lint/cmd/golangci-lint \
github.com/maxbrunsfeld/counterfeiter/v6
.PHONY: install
install: install-tools install-git-hooks
.PHONY: generate
generate: install-tools
@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