Преглед изворни кода

ci: only run static check for emqx-enterprise profile

Zaiming (Stone) Shi пре 3 година
родитељ
комит
7df50032c1
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -79,7 +79,8 @@ ct: $(REBAR) merge-config
 
 
 .PHONY: static_checks
 .PHONY: static_checks
 static_checks:
 static_checks:
-	@$(REBAR) as check do dialyzer, xref, ct --suite apps/emqx/test/emqx_static_checks --readable $(CT_READABLE)
+	@$(REBAR) as check do dialyzer, xref
+	@if [ "$${PROFILE}" = 'emqx-enterprise' ]; then $(REBAR) ct --suite apps/emqx/test/emqx_static_checks --readable $(CT_READABLE); fi
 
 
 APPS=$(shell $(SCRIPTS)/find-apps.sh)
 APPS=$(shell $(SCRIPTS)/find-apps.sh)