We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f730be commit f06a9e9Copy full SHA for f06a9e9
src/cargo/util/progress.rs
@@ -38,11 +38,13 @@ struct Format {
38
impl<'cfg> Progress<'cfg> {
39
pub fn with_style(name: &str, style: ProgressStyle, cfg: &'cfg Config) -> Progress<'cfg> {
40
// report no progress when -q (for quiet) or TERM=dumb are set
41
+ // or if running on Continuous Integration service like Travis where the
42
+ // output logs get mangled.
43
let dumb = match env::var("TERM") {
44
Ok(term) => term == "dumb",
45
Err(_) => false,
46
};
- if cfg.shell().verbosity() == Verbosity::Quiet || dumb {
47
+ if cfg.shell().verbosity() == Verbosity::Quiet || dumb || env::var("CI").is_ok() {
48
return Progress { state: None };
49
}
50
0 commit comments