mirror of
https://github.com/valitydev/erlang_uac.git
synced 2024-11-06 01:35:23 +00:00
ad4276f0c0
* Allow issuing tokens with undefined ACL * Allow ACL in subject be undefined * Return domains instead of ACL * Remove obsolete testcase * Fix wrong error atom * Bump build_utils * Bump build_image_tag * Upgrade dialyzer cache erlang version * Treat resource_access as claim * Erlang 22 * Refactor claims contruction * Remove commentary * Delete unreachable case * Remove outdated authorize_operation/3 clause * Fix get_subject_id * Fix typespecs * Allow no expiration tokens * Add no exp claim test * Throw error if token has no expiration but it is checked
61 lines
905 B
Makefile
61 lines
905 B
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 := erlang_uac
|
|
|
|
BUILD_IMAGE_TAG := e7eb72b7721443d88a948546da815528a96c6de9
|
|
|
|
CALL_ANYWHERE := \
|
|
submodules \
|
|
all compile xref lint dialyze test cover \
|
|
start clean distclean
|
|
|
|
CALL_W_CONTAINER := $(CALL_ANYWHERE)
|
|
|
|
.PHONY: $(CALL_W_CONTAINER) all
|
|
|
|
all: compile
|
|
|
|
-include $(UTILS_PATH)/make_lib/utils_container.mk
|
|
|
|
$(SUBTARGETS): %/.git: %
|
|
git submodule update --init $<
|
|
touch $@
|
|
|
|
submodules: $(SUBTARGETS)
|
|
|
|
compile:
|
|
$(REBAR) compile
|
|
|
|
xref:
|
|
$(REBAR) xref
|
|
|
|
lint:
|
|
elvis rock
|
|
|
|
dialyze:
|
|
$(REBAR) dialyzer
|
|
|
|
start: submodules
|
|
$(REBAR) run
|
|
|
|
clean:
|
|
$(REBAR) cover -r
|
|
$(REBAR) clean
|
|
|
|
distclean:
|
|
$(REBAR) clean
|
|
rm -rf _build
|
|
|
|
cover:
|
|
$(REBAR) cover
|
|
|
|
# CALL_W_CONTAINER
|
|
test:
|
|
$(REBAR) ct
|