sequences/Makefile
Sergey Yelin 2ae0eeb4e3
Update build utils security (#17)
* IS-964: Add security pipeline

* Add Erlang Service pipe

* Run tests in parallel

* Fix run in parallel

* Fix build_utils commit

* run -> runPipe

* Back to call

* Fix dialyzer cache

* Fix join

* Rework parallel

* Fix config

* Xhange pipe method

* New parallel

* Do not force run stages in parallel

* More on parallel

* Add pipeline to parallel

* test

* remove unknown

* test

* typo1

* Final cleanup

* Anothr try

* Rework parallel

* One more test

* Fix parallel run

* Return stages back

* Update

* Update build_utils
2020-07-07 14:41:40 +03:00

71 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 := sequences
# 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 := da0ab769f01b650b389d18fc85e7418e727cbe96
# Build image tag to be used
BUILD_IMAGE_TAG := 442c2c274c1d8e484e5213089906a4271641d95e
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
start: submodules
$(REBAR) run
devrel: submodules
$(REBAR) release
release: distclean
$(REBAR) as prod release
clean:
$(REBAR) clean
distclean:
$(REBAR) clean
rm -rf _build
# CALL_W_CONTAINER
test: submodules
$(REBAR) ct