A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
ci(gateway): drop the eunit step and test profile
Hampus647f4b0d0d8c
diff --git a/fluxer_gateway/Makefile b/fluxer_gateway/Makefileindex 23b9c2c08..974186ae5 100644--- a/fluxer_gateway/Makefile+++ b/fluxer_gateway/Makefile@@ -2,7 +2,7 @@GATEWAY_TOOL := cargo run --locked --quiet --manifest-path ../tools/ci/Cargo.toml -- gateway --step-.PHONY: all fmt fmt-check lint typecheck test check compile clean+.PHONY: all fmt fmt-check lint typecheck check compile cleanall: check@@ -18,9 +18,6 @@ lint:typecheck:@$(GATEWAY_TOOL) typecheck-test:- @$(GATEWAY_TOOL) eunit-check:@$(GATEWAY_TOOL) all_checksdiff --git a/fluxer_gateway/elvis.config b/fluxer_gateway/elvis.configindex 95466ea4a..4031ca93a 100644--- a/fluxer_gateway/elvis.config+++ b/fluxer_gateway/elvis.config@@ -145,75 +145,6 @@{elvis_style, no_behavior_info, #{}}]},- #{- files => ["test/*.erl"],- ruleset => erl_files_test,- rules => [- {elvis_style, prefer_sigils, disable},- {elvis_style, prefer_strict_generators, disable},- {elvis_style, state_record_and_type, disable},- {elvis_style, no_init_lists, disable},- {elvis_style, consistent_ok_error_spec, disable},- {elvis_style, prefer_unquoted_atoms, disable},- {elvis_text_style, max_line_length, #{- limit => 100,- skip_comments => whole_line,- no_whitespace_after_limit => true- }},- {elvis_text_style, no_redundant_blank_lines, #{- max_lines => 1- }},- {elvis_style, max_function_length, #{- max_length => 70,- count_comments => false,- count_whitespace => false- }},- {elvis_style, max_function_clause_length, #{- max_length => 60,- count_comments => false,- count_whitespace => false- }},- {elvis_style, max_anonymous_function_length, #{- max_length => 30,- count_comments => false,- count_whitespace => false- }},- {elvis_style, max_anonymous_function_clause_length, #{- max_length => 30,- count_comments => false,- count_whitespace => false- }},- {elvis_style, max_function_arity, #{- max_arity => 7,- non_exported_max_arity => 8- }},- {elvis_style, max_anonymous_function_arity, #{- max_arity => 6- }},- {elvis_style, max_module_length, #{- max_length => 1000,- count_comments => false,- count_whitespace => false- }},- {elvis_style, no_deep_nesting, #{- level => 3- }},- {elvis_style, code_complexity, #{- max_complexity => 20- }},- {elvis_style, abc_size, #{- max_abc_size => 30- }},- {elvis_style, no_common_caveats_call, #{- caveat_functions => [- {erlang, binary_to_atom, 1},- {erlang, binary_to_atom, 2}- ]- }},- {elvis_text_style, no_tabs, #{}},- {elvis_text_style, no_trailing_whitespace, #{}}- ]- },#{files => ["rebar.config"],ruleset => rebar_config,diff --git a/fluxer_gateway/rebar.config b/fluxer_gateway/rebar.configindex 1d880dd2c..1a8c2800e 100644--- a/fluxer_gateway/rebar.config+++ b/fluxer_gateway/rebar.config@@ -45,12 +45,6 @@{dev_mode, false},{include_erts, true}]}- ]},- {test, [- {erl_opts, [{d, 'TEST'}]},- {deps, [- {meck, "1.2.0"}- ]}]}]}.@@ -67,7 +61,6 @@"src/**/*.erl","src/*.app.src","include/**/*.hrl",- "test/**/*.erl","elvis.config","rebar.config","rebar.config.script"@@ -87,6 +80,3 @@]},{warnings_file, "dialyzer.ignore-warnings"}]}.--{eunit_opts, [{application_start, false}]}.-{eunit_compile_opts, [debug_info]}.diff --git a/tools/ci/src/gateway.rs b/tools/ci/src/gateway.rsindex 4ff9f99c9..eb7df56a5 100644--- a/tools/ci/src/gateway.rs+++ b/tools/ci/src/gateway.rs@@ -21,8 +21,6 @@ pub struct BuildGatewayNifsArgs {pub struct GatewayArgs {#[arg(long, value_enum)]step: GatewayStep,- #[arg(long, default_value = "test")]- eqwalizer_profile: String,}#[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum)]@@ -34,7 +32,6 @@ pub(crate) enum GatewayStep {Compile,Dialyzer,Typecheck,- Eunit,AllChecks,Clean,}@@ -73,23 +70,19 @@ pub(crate) fn run_gateway_step(GatewayStep::Compile => run_rebar(gateway_dir, ["compile"]),GatewayStep::Dialyzer => run_rebar(gateway_dir, ["dialyzer"]),GatewayStep::Typecheck => run_eqwalizer(gateway_dir, eqwalizer_profile),- GatewayStep::Eunit => run_rebar(gateway_dir, ["as", "test", "eunit"]),GatewayStep::AllChecks => {- run_gateway_check_step("Step 1/5: Format check (erlfmt)", || {+ run_gateway_check_step("Step 1/4: Format check (erlfmt)", || {run_gateway_step(gateway_dir, GatewayStep::FmtCheck, eqwalizer_profile)})?;- run_gateway_check_step("Step 2/5: Lint (elvis)", || {+ run_gateway_check_step("Step 2/4: Lint (elvis)", || {run_gateway_step(gateway_dir, GatewayStep::Lint, eqwalizer_profile)})?;- run_gateway_check_step("Step 3/5: Compile", || {+ run_gateway_check_step("Step 3/4: Compile", || {run_gateway_step(gateway_dir, GatewayStep::Compile, eqwalizer_profile)})?;- run_gateway_check_step("Step 4/5: Type check", || {+ run_gateway_check_step("Step 4/4: Type check", || {run_gateway_step(gateway_dir, GatewayStep::Typecheck, eqwalizer_profile)})?;- run_gateway_check_step("Step 5/5: Unit tests (eunit)", || {- run_gateway_step(gateway_dir, GatewayStep::Eunit, eqwalizer_profile)- })?;println!("All gateway checks passed.");Ok(())}