mirror of
https://github.com/valitydev/dominant.git
synced 2024-11-06 02:25:17 +00:00
d7f07634b5
* Bump to rbkmoney/dmt_core@9a7a3779 Update error mapping accordingly. * Bump to rbkmoney/image-service-erlang@37c294de * Bump to rbkmoney/image-build@07d3946f * Bump to rbkmoney/build_utils@39115931 * Bump to rbkmoney/genlib@54920e76 * Bump to rbkmoney/woody_erlang@dd5eaa73 * Bump to rbkmoney/erlang-health@406fdd36 * Bump to rbkmoney/scoper@8e3499b1 * Bump to rbkmoney/logger_logstash_formatter@6fc1957b * Bump to rbkmoney/machinegun_proto@7def31fa * Bump to recon 2.5.1 + observer-cli 1.5.4 * Bump to rbkmoney/damsel@8c94c46b
65 lines
1.3 KiB
Makefile
65 lines
1.3 KiB
Makefile
REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
|
|
SUBMODULES = build_utils
|
|
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
|
|
|
|
UTILS_PATH := build_utils
|
|
TEMPLATES_PATH := .
|
|
|
|
# Name of the service
|
|
SERVICE_NAME := dominant
|
|
# Service image default tag
|
|
SERVICE_IMAGE_TAG ?= $(shell git rev-parse HEAD)
|
|
# The tag for service image to be pushed with
|
|
SERVICE_IMAGE_PUSH_TAG ?= $(SERVICE_IMAGE_TAG)
|
|
|
|
# Base image for the service
|
|
BASE_IMAGE_NAME := service-erlang
|
|
BASE_IMAGE_TAG := 37c294de80c2ff7cd732f9b367914532fd662539
|
|
|
|
# Build image tag to be used
|
|
BUILD_IMAGE_TAG := 07d3946f8f005782697de20270ac58cdcd18b011
|
|
|
|
CALL_ANYWHERE := all submodules compile xref lint dialyze start devrel release clean distclean
|
|
|
|
CALL_W_CONTAINER := $(CALL_ANYWHERE) test
|
|
|
|
all: compile
|
|
|
|
-include $(UTILS_PATH)/make_lib/utils_container.mk
|
|
-include $(UTILS_PATH)/make_lib/utils_image.mk
|
|
|
|
.PHONY: $(CALL_W_CONTAINER)
|
|
|
|
# CALL_ANYWHERE
|
|
$(SUBTARGETS): %/.git: %
|
|
git submodule update --init $<
|
|
touch $@
|
|
|
|
submodules: $(SUBTARGETS)
|
|
|
|
compile: submodules
|
|
$(REBAR) compile
|
|
|
|
xref: submodules
|
|
$(REBAR) xref
|
|
|
|
lint:
|
|
elvis rock
|
|
|
|
dialyze:
|
|
$(REBAR) dialyzer
|
|
|
|
release: submodules distclean
|
|
$(REBAR) as prod release
|
|
|
|
clean:
|
|
$(REBAR) clean
|
|
|
|
distclean:
|
|
$(REBAR) clean -a
|
|
rm -rf _build
|
|
|
|
# CALL_W_CONTAINER
|
|
test: submodules
|
|
$(REBAR) ct
|