chore(build): add 'check' profile for xref and dialyzer
This commit is contained in:
parent
b2d3358368
commit
93a35c4814
6
Makefile
6
Makefile
|
@ -2,7 +2,7 @@ REBAR_VERSION = 3.14.3-emqx-1
|
||||||
REBAR = ./rebar3
|
REBAR = ./rebar3
|
||||||
|
|
||||||
PROFILE ?= emqx
|
PROFILE ?= emqx
|
||||||
PROFILES := emqx emqx-edge
|
PROFILES := emqx emqx-edge check test
|
||||||
PKG_PROFILES := emqx-pkg emqx-edge-pkg
|
PKG_PROFILES := emqx-pkg emqx-edge-pkg
|
||||||
|
|
||||||
export REBAR_GIT_CLONE_OPTIONS += --depth=1
|
export REBAR_GIT_CLONE_OPTIONS += --depth=1
|
||||||
|
@ -56,11 +56,11 @@ endif
|
||||||
|
|
||||||
.PHONY: xref
|
.PHONY: xref
|
||||||
xref: $(REBAR)
|
xref: $(REBAR)
|
||||||
$(REBAR) as test xref
|
$(REBAR) as check xref
|
||||||
|
|
||||||
.PHONY: dialyzer
|
.PHONY: dialyzer
|
||||||
dialyzer: $(REBAR)
|
dialyzer: $(REBAR)
|
||||||
$(REBAR) as test dialyzer
|
$(REBAR) as check dialyzer
|
||||||
|
|
||||||
include packages.mk
|
include packages.mk
|
||||||
include docker.mk
|
include docker.mk
|
||||||
|
|
|
@ -45,6 +45,8 @@ profiles() ->
|
||||||
, {'emqx-edge-pkg', [ {relx, relx('emqx-edge-pkg')}
|
, {'emqx-edge-pkg', [ {relx, relx('emqx-edge-pkg')}
|
||||||
, {erl_opts, [no_debug_info]}
|
, {erl_opts, [no_debug_info]}
|
||||||
]}
|
]}
|
||||||
|
, {check, [ {erl_opts, [debug_info]}
|
||||||
|
]}
|
||||||
, {test, [ {deps, test_deps()}
|
, {test, [ {deps, test_deps()}
|
||||||
, {erl_opts, [debug_info]}
|
, {erl_opts, [debug_info]}
|
||||||
]}
|
]}
|
||||||
|
|
Loading…
Reference in New Issue