[ruby-cvs:67917] k0kubun:r60736 (trunk): .travis.yml: workaround to resolve ::1

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Fri Nov 10 20:50:00 JST 2017

k0kubun	2017-11-10 20:50:00 +0900 (Fri, 10 Nov 2017)

  New Revision: 60736


    .travis.yml: workaround to resolve ::1
    Container-based Trusty environment (sudo: false) does not support IPv6.
    And the image has "::1  localhost ip6-localhost ip6-loopback" entry in
    addition to " 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.

  Modified files:

More information about the ruby-cvs mailing list