mirror of
https://github.com/valitydev/hellgate.git
synced 2024-11-06 02:45:20 +00:00
8fe96f1f4c
* HG-173: changed party interface to claims (#79) * DC-45: implemented dirty version of event batching (#92) * DC-45: implemented dirty version of event batching * DC-45: Make invoice machines emit changes within single event * HG-229: Embrace new events hierarchy (#94) * HG-229: Bump to rbkmoney/damsel@7bb67fc * HG-229: Embrace new events hierarchy * HG-229: Fix long time broken typespecs * HG-229: Employ session results + further decouple sessions from payment * HG-229: Better classify payment errors * HG-229: Implement model splitting * HG-229: Stuff location with something meaningful * HG-229: Overcome a couple of rebase related issues * HG-229: Drop event filtering facilities altogether * HG-229: Make result more explicit * HG-229: Lessen verbosity on cleaning up * HG-192: Handle missing shop properly (#95) * HG-173: fixed some shop-related asserts (#97) * HG-219: Bump to upstream rbkmoney/damsel@b665c89
74 lines
1.4 KiB
Makefile
74 lines
1.4 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 := hellgate
|
|
# 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 := 13454a94990acb72f753623ec13599a9f6f4f852
|
|
|
|
# Build image tag to be used
|
|
BUILD_IMAGE_TAG := 4fa802d2f534208b9dc2ae203e2a5f07affbf385
|
|
|
|
CALL_ANYWHERE := all submodules rebar-update 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)
|
|
|
|
rebar-update:
|
|
$(REBAR) update
|
|
|
|
compile: submodules rebar-update
|
|
$(REBAR) compile
|
|
|
|
xref: submodules
|
|
$(REBAR) xref
|
|
|
|
lint:
|
|
elvis rock
|
|
|
|
dialyze:
|
|
$(REBAR) dialyzer
|
|
|
|
start: submodules
|
|
$(REBAR) run
|
|
|
|
devrel: submodules
|
|
$(REBAR) release
|
|
|
|
release: distclean
|
|
$(REBAR) as prod release
|
|
|
|
clean:
|
|
$(REBAR) clean
|
|
|
|
distclean:
|
|
$(REBAR) clean -a
|
|
rm -rf _build
|
|
|
|
# CALL_W_CONTAINER
|
|
test: submodules
|
|
$(REBAR) ct
|