hellgate/Makefile

83 lines
1.6 KiB
Makefile
Raw Normal View History

2016-03-02 15:50:50 +00:00
REBAR := $(shell which rebar3 2>/dev/null || which ./rebar3)
SUBMODULES = build_utils
HG-3: Add stubbed invoice machine and all the wiring (#2) * HG-3: Add stubbed invoice machine and all the wiring * HG-3: Bump damsel to a proper revision * HG-3: Get rid of precompile hook to make submodules work * HG-3: Add missing elvis config * HG-3: Switch to proto fork temporarily * HG-3: Merge dispatcher activities w/ machine behaviour * HG-4: Switch to new proto fork temporarily * HG-3: Avoid `submodule init` on every make invocation * HG-3: Allow to pass datetime in both native and iso8601 format * HG-4: Switch to new proto fork temporarily * HG-4: Adapt to new protocol + internal & external events * HG-3: Switch to proto fork already * HG-21: Add containerization maketargets * HG-4: Fix interfaces and add missing activities * HG-4: Switch to new proto fork temporarily * HG-6: Fix ruble currency code * HG-4: Fix interface issues * HG-4: Add default config * HG-4: Switch to new proto fork temporarily * HG-4: Start filling provider proxy interaction in * Publish TODOs * HG-4: Stub a provider proxy w/ settings from app env * HG-4: Fix copypasta * HG-4: Add dummy provider proxy, to be moved into testsuite * HG-4: Switch to new proto fork temporarily * HG-21: Remove nonfunctional target dependencies * HG-4: Rename hg_action to make its objective clearer * HG-4: Simplify interface address manipulation * HG-4: Compile proxy related thrift files * HG-4: Switch to new proto fork temporarily * HG-4: Update TODOs * HG-4: Isolate service specs and put them to the proto lib * HG-4: Move dummy provider into the test dir * HG-4: Fix getting events with respect to proto update * damsel@24a247b * HG-4: Introduce hg client + add preliminary test suite * HG-4: Merge woody handler with invoice module * HG-4: Fuse processor handler with machine * HG-4: Harden the build + fix typing errors alongside * HG-4: Add happy payment testcase + stateful client * HG-4: Update gitignore rules with respect to wercker beta * HG-4: Stash a couple of items into TODO * HG-4: Make trivial behaviour for test provider(s) * HG-4: Update elvis rules + lint tests' code * HG-4: Make UserInfo a part of the client + simplify test code with macros * HG-4: Cleanup dirty proxy state after testcases * HG-4: Rename test_provider to a wider test_proxy * HG-4: Explicitly mention requirement on manually started mgun
2016-06-15 16:10:22 +00:00
SUBTARGETS = $(patsubst %,%/.git,$(SUBMODULES))
2016-03-02 15:50:50 +00:00
UTILS_PATH := build_utils
TEMPLATES_PATH := .
2016-03-02 15:50:50 +00:00
# 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)
2016-03-02 15:50:50 +00:00
# Base image for the service
BASE_IMAGE_NAME := service-erlang
2021-03-11 10:33:30 +00:00
BASE_IMAGE_TAG := c0aee9a464ee26b8887dd9660dca69d4c3444179
# Build image tag to be used
2020-11-27 13:48:54 +00:00
BUILD_IMAGE_NAME := build-erlang
2021-03-11 10:33:30 +00:00
BUILD_IMAGE_TAG := 9bedaf514a40f758f1e94d3d542e009bf21d96c1
CALL_ANYWHERE := all submodules rebar-update compile xref lint dialyze plt_update \
release clean distclean format check_format
CALL_W_CONTAINER := $(CALL_ANYWHERE) test
2016-03-02 15:50:50 +00:00
all: compile
-include $(UTILS_PATH)/make_lib/utils_container.mk
-include $(UTILS_PATH)/make_lib/utils_image.mk
.PHONY: $(CALL_W_CONTAINER)
# CALL_ANYWHERE
HG-3: Add stubbed invoice machine and all the wiring (#2) * HG-3: Add stubbed invoice machine and all the wiring * HG-3: Bump damsel to a proper revision * HG-3: Get rid of precompile hook to make submodules work * HG-3: Add missing elvis config * HG-3: Switch to proto fork temporarily * HG-3: Merge dispatcher activities w/ machine behaviour * HG-4: Switch to new proto fork temporarily * HG-3: Avoid `submodule init` on every make invocation * HG-3: Allow to pass datetime in both native and iso8601 format * HG-4: Switch to new proto fork temporarily * HG-4: Adapt to new protocol + internal & external events * HG-3: Switch to proto fork already * HG-21: Add containerization maketargets * HG-4: Fix interfaces and add missing activities * HG-4: Switch to new proto fork temporarily * HG-6: Fix ruble currency code * HG-4: Fix interface issues * HG-4: Add default config * HG-4: Switch to new proto fork temporarily * HG-4: Start filling provider proxy interaction in * Publish TODOs * HG-4: Stub a provider proxy w/ settings from app env * HG-4: Fix copypasta * HG-4: Add dummy provider proxy, to be moved into testsuite * HG-4: Switch to new proto fork temporarily * HG-21: Remove nonfunctional target dependencies * HG-4: Rename hg_action to make its objective clearer * HG-4: Simplify interface address manipulation * HG-4: Compile proxy related thrift files * HG-4: Switch to new proto fork temporarily * HG-4: Update TODOs * HG-4: Isolate service specs and put them to the proto lib * HG-4: Move dummy provider into the test dir * HG-4: Fix getting events with respect to proto update * damsel@24a247b * HG-4: Introduce hg client + add preliminary test suite * HG-4: Merge woody handler with invoice module * HG-4: Fuse processor handler with machine * HG-4: Harden the build + fix typing errors alongside * HG-4: Add happy payment testcase + stateful client * HG-4: Update gitignore rules with respect to wercker beta * HG-4: Stash a couple of items into TODO * HG-4: Make trivial behaviour for test provider(s) * HG-4: Update elvis rules + lint tests' code * HG-4: Make UserInfo a part of the client + simplify test code with macros * HG-4: Cleanup dirty proxy state after testcases * HG-4: Rename test_provider to a wider test_proxy * HG-4: Explicitly mention requirement on manually started mgun
2016-06-15 16:10:22 +00:00
$(SUBTARGETS): %/.git: %
git submodule update --init $<
touch $@
submodules: $(SUBTARGETS)
rebar-update:
$(REBAR) update
compile: submodules rebar-update
HG-3: Add stubbed invoice machine and all the wiring (#2) * HG-3: Add stubbed invoice machine and all the wiring * HG-3: Bump damsel to a proper revision * HG-3: Get rid of precompile hook to make submodules work * HG-3: Add missing elvis config * HG-3: Switch to proto fork temporarily * HG-3: Merge dispatcher activities w/ machine behaviour * HG-4: Switch to new proto fork temporarily * HG-3: Avoid `submodule init` on every make invocation * HG-3: Allow to pass datetime in both native and iso8601 format * HG-4: Switch to new proto fork temporarily * HG-4: Adapt to new protocol + internal & external events * HG-3: Switch to proto fork already * HG-21: Add containerization maketargets * HG-4: Fix interfaces and add missing activities * HG-4: Switch to new proto fork temporarily * HG-6: Fix ruble currency code * HG-4: Fix interface issues * HG-4: Add default config * HG-4: Switch to new proto fork temporarily * HG-4: Start filling provider proxy interaction in * Publish TODOs * HG-4: Stub a provider proxy w/ settings from app env * HG-4: Fix copypasta * HG-4: Add dummy provider proxy, to be moved into testsuite * HG-4: Switch to new proto fork temporarily * HG-21: Remove nonfunctional target dependencies * HG-4: Rename hg_action to make its objective clearer * HG-4: Simplify interface address manipulation * HG-4: Compile proxy related thrift files * HG-4: Switch to new proto fork temporarily * HG-4: Update TODOs * HG-4: Isolate service specs and put them to the proto lib * HG-4: Move dummy provider into the test dir * HG-4: Fix getting events with respect to proto update * damsel@24a247b * HG-4: Introduce hg client + add preliminary test suite * HG-4: Merge woody handler with invoice module * HG-4: Fuse processor handler with machine * HG-4: Harden the build + fix typing errors alongside * HG-4: Add happy payment testcase + stateful client * HG-4: Update gitignore rules with respect to wercker beta * HG-4: Stash a couple of items into TODO * HG-4: Make trivial behaviour for test provider(s) * HG-4: Update elvis rules + lint tests' code * HG-4: Make UserInfo a part of the client + simplify test code with macros * HG-4: Cleanup dirty proxy state after testcases * HG-4: Rename test_provider to a wider test_proxy * HG-4: Explicitly mention requirement on manually started mgun
2016-06-15 16:10:22 +00:00
$(REBAR) compile
xref: submodules
$(REBAR) xref
lint:
elvis rock -V
check_format:
$(REBAR) fmt -c
format:
$(REBAR) fmt -w
dialyze: submodules
$(REBAR) as test dialyzer
2016-03-02 15:50:50 +00:00
plt_update:
$(REBAR) dialyzer -u true -s false
HG-3: Add stubbed invoice machine and all the wiring (#2) * HG-3: Add stubbed invoice machine and all the wiring * HG-3: Bump damsel to a proper revision * HG-3: Get rid of precompile hook to make submodules work * HG-3: Add missing elvis config * HG-3: Switch to proto fork temporarily * HG-3: Merge dispatcher activities w/ machine behaviour * HG-4: Switch to new proto fork temporarily * HG-3: Avoid `submodule init` on every make invocation * HG-3: Allow to pass datetime in both native and iso8601 format * HG-4: Switch to new proto fork temporarily * HG-4: Adapt to new protocol + internal & external events * HG-3: Switch to proto fork already * HG-21: Add containerization maketargets * HG-4: Fix interfaces and add missing activities * HG-4: Switch to new proto fork temporarily * HG-6: Fix ruble currency code * HG-4: Fix interface issues * HG-4: Add default config * HG-4: Switch to new proto fork temporarily * HG-4: Start filling provider proxy interaction in * Publish TODOs * HG-4: Stub a provider proxy w/ settings from app env * HG-4: Fix copypasta * HG-4: Add dummy provider proxy, to be moved into testsuite * HG-4: Switch to new proto fork temporarily * HG-21: Remove nonfunctional target dependencies * HG-4: Rename hg_action to make its objective clearer * HG-4: Simplify interface address manipulation * HG-4: Compile proxy related thrift files * HG-4: Switch to new proto fork temporarily * HG-4: Update TODOs * HG-4: Isolate service specs and put them to the proto lib * HG-4: Move dummy provider into the test dir * HG-4: Fix getting events with respect to proto update * damsel@24a247b * HG-4: Introduce hg client + add preliminary test suite * HG-4: Merge woody handler with invoice module * HG-4: Fuse processor handler with machine * HG-4: Harden the build + fix typing errors alongside * HG-4: Add happy payment testcase + stateful client * HG-4: Update gitignore rules with respect to wercker beta * HG-4: Stash a couple of items into TODO * HG-4: Make trivial behaviour for test provider(s) * HG-4: Update elvis rules + lint tests' code * HG-4: Make UserInfo a part of the client + simplify test code with macros * HG-4: Cleanup dirty proxy state after testcases * HG-4: Rename test_provider to a wider test_proxy * HG-4: Explicitly mention requirement on manually started mgun
2016-06-15 16:10:22 +00:00
release: submodules
$(REBAR) as prod release
2016-03-02 15:50:50 +00:00
clean:
$(REBAR) clean
distclean:
$(REBAR) clean -a
rm -rf _build
2016-03-02 15:50:50 +00:00
# CALL_W_CONTAINER
test: submodules
$(REBAR) do eunit, ct
test.%: apps/hellgate/test/hg_%_tests_SUITE.erl
$(REBAR) ct --suite=$^