diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-10 11:50:00 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-10 11:50:00 +0000 |
commit | 4d606546902fcc32b44ea7e07461be9cf05df909 (patch) | |
tree | e1c51ad597e0d1769ed14486730b04b9ee4e8b67 /.travis.yml | |
parent | 54b8b8e4f7da17d05242cabdfe431e4951844426 (diff) | |
download | ruby-4d606546902fcc32b44ea7e07461be9cf05df909.tar.gz |
.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
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 |