From 4d606546902fcc32b44ea7e07461be9cf05df909 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Fri, 10 Nov 2017 11:50:00 +0000 Subject: [PATCH] .travis.yml: workaround to resolve ::1 Container-based Trusty environment (sudo: false) does not support IPv6. https://github.com/travis-ci/travis-ci/issues/3302 And the image has "::1 localhost ip6-localhost ip6-loopback" entry in addition to "127.0.0.1 localhost" in /etc/hosts. Thus when it can resolve localhost to ::1 and CI fails. To resolve this, at least we need to modify /etc/hosts for now but we can't modify /etc/hosts without sudo. So I enabled sudo. As Sudo-enabled VM didn't have "::1 localhost" entry, this change fixed the cause without touching /etc/hosts. Since boot of `sudo: required` is slower than `sudo: false`, please revert this commit anytime when Container-based Trusty environment is updated and ::1 issue has gone. https://docs.travis-ci.com/user/reference/overview/ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4c7a2e9667..9255e02c7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ language: c dist: trusty -sudo: false +sudo: required compiler: - gcc