diff --git a/crates/iroha_wasm_builder/src/main.rs b/crates/iroha_wasm_builder/src/main.rs index e5004888ccb..73b35822d49 100644 --- a/crates/iroha_wasm_builder/src/main.rs +++ b/crates/iroha_wasm_builder/src/main.rs @@ -59,20 +59,28 @@ fn main() -> color_eyre::Result<()> { }; let output = if optimize { - let mut sp = spinoff::Spinner::new_with_stream( - spinoff::spinners::Binary, - "Optimizing the output", - None, - spinoff::Streams::Stderr, - ); + let sp = if std::env::var("CI").is_err() { + Some(spinoff::Spinner::new_with_stream( + spinoff::spinners::Binary, + "Optimizing the output", + None, + spinoff::Streams::Stderr, + )) + } else { + None + }; match output.optimize() { Ok(optimized) => { - sp.success("Output is optimized"); + if let Some(mut sp) = sp { + sp.success("Output is optimized"); + } optimized } err => { - sp.fail("Optimization failed"); + if let Some(mut sp) = sp { + sp.fail("Optimization failed"); + } err? } }