summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-13 04:55:43 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-13 04:55:43 +0000
commit3b257773a55b3d58e8a41d82203bb5a66304f3fe (patch)
tree1252fb70e34b25c00144d093927bed3f745f4316 /tool
parent3d5be5f86a900aa9347db8643bacdaebd38ae241 (diff)
.travis.yml: specify --tty=no
To reduce the amount of output, prefer --tty=no instead of --color=never. This option not only disables color output but also kill some tty-related features, like spinners. Travis limits its output by the physical size of the log, not by the number of lines. This change should make more room for new logs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/m4/_colorize_result_prepare.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/tool/m4/_colorize_result_prepare.m4 b/tool/m4/_colorize_result_prepare.m4
index 292155f113..af572caa18 100644
--- a/tool/m4/_colorize_result_prepare.m4
+++ b/tool/m4/_colorize_result_prepare.m4
@@ -1,7 +1,13 @@
# -*- Autoconf -*-
AC_DEFUN([_COLORIZE_RESULT_PREPARE], [
msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset=
- AS_IF([test "x${CONFIGURE_TTY}" = xyes -o -t 1], [
+ AS_CASE(["x${CONFIGURE_TTY}"],
+ [xyes|xalways],[rb_cv_configure_tty=1],
+ [xno|xnever], [rb_cv_configure_tty=0],
+ [AS_IF([test -t 1],
+ [rb_cv_configure_tty=1],
+ [rb_cv_configure_tty=0])])
+ AS_IF([test $rb_cv_configure_tty -eq 1], [
msg_begin="`tput smso 2>/dev/null`"
AS_CASE(["$msg_begin"], ['@<:@'*m],
[msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`"