party-management/Makefile

77 lines
1.5 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
BASE_IMAGE_TAG := 16e2b3ef17e5fdefac8554ced9c2c74e5c6e9e11
# 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
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
dialyze: submodules
$(REBAR) dialyzer
2016-03-02 15:50:50 +00:00
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
start: submodules
2016-04-07 11:37:34 +00:00
$(REBAR) run
2016-03-02 15:50:50 +00:00
devrel: submodules
$(REBAR) release
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=$^