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 7abc235761
All checks were successful
continuous-integration/drone/push Build is passing
refactor(drone): speed up ci/cd (#24)
Reviewed-on: twhelp/core#24
2022-08-05 05:34:03 +00:00

30 lines
851 B
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 counterfeiter..."
cd ./internal/tools && go install github.com/maxbrunsfeld/counterfeiter/v6
.PHONY: install-tools
install-tools:
@echo "Installing required tools..."
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-counterfeiter
@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