Disable progress bar by default if CI or Emacs detected

This commit is contained in:
Alexandre Archambault 2016-05-22 21:45:24 +02:00
parent 3045ebbfd0
commit 527b1eca96
No known key found for this signature in database
GPG Key ID: 14640A6839C263A9
1 changed files with 4 additions and 1 deletions

View File

@ -65,9 +65,12 @@ object TermDisplay {
def nonInteractive = System.console() == null
def insideEmacs = sys.env.contains("INSIDE_EMACS")
def ci = sys.env.contains("CI")
val env = env0.getOrElse(compatibilityEnv)
env || nonInteractive
env || nonInteractive || insideEmacs || ci
}