From 93a35c48142da9b4fab8f17f1b53fa564278c29d Mon Sep 17 00:00:00 2001 From: Zaiming Shi Date: Thu, 10 Dec 2020 12:03:16 +0100 Subject: [PATCH] chore(build): add 'check' profile for xref and dialyzer --- Makefile | 6 +++--- rebar.config.erl | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8c3dd6639..4b9cc7863 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ REBAR_VERSION = 3.14.3-emqx-1 REBAR = ./rebar3 PROFILE ?= emqx -PROFILES := emqx emqx-edge +PROFILES := emqx emqx-edge check test PKG_PROFILES := emqx-pkg emqx-edge-pkg export REBAR_GIT_CLONE_OPTIONS += --depth=1 @@ -56,11 +56,11 @@ endif .PHONY: xref xref: $(REBAR) - $(REBAR) as test xref + $(REBAR) as check xref .PHONY: dialyzer dialyzer: $(REBAR) - $(REBAR) as test dialyzer + $(REBAR) as check dialyzer include packages.mk include docker.mk diff --git a/rebar.config.erl b/rebar.config.erl index 6c7edd9cc..63437e82f 100644 --- a/rebar.config.erl +++ b/rebar.config.erl @@ -45,6 +45,8 @@ profiles() -> , {'emqx-edge-pkg', [ {relx, relx('emqx-edge-pkg')} , {erl_opts, [no_debug_info]} ]} + , {check, [ {erl_opts, [debug_info]} + ]} , {test, [ {deps, test_deps()} , {erl_opts, [debug_info]} ]}