.PHONY: all precommit setup lint test integration_test build run fix jenkins
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
SERVICE = feed-settings
include $(SELF_DIR)vendor/code.justin.tv/feeds/service-common/CommonMakefile.mk
all: setup lint test build

LOCAL_PACKAGES = "./cmd/..."

setup_clients: setup
	go get -d code.justin.tv/feeds/clients/...
	cp -R vendor $(GOPATH)/src/code.justin.tv/feeds/clients
	rm -rf $(GOPATH)/src/code.justin.tv/feeds/clients/vendor/code.justin.tv/feeds/clients

concurrency_test:
	env ENVIRONMENT=$(ENVIRONMENT) go test -race -tags="integration concurrency" $(LOCAL_PACKAGES)

generate_mocks:
	mockery -dir cmd/feed-settings/internal/api -output cmd/feed-settings/internal/api/mocks -name ActivityPublisher -outpkg apimocks

jenkins: test lint static_build
