[前][次][番号順一覧][スレッド一覧]

ruby-changes:48621

From: k0kubun <ko1@a...>
Date: Fri, 10 Nov 2017 20:50:08 +0900 (JST)
Subject: [ruby-changes:48621] k0kubun:r60736 (trunk): .travis.yml: workaround to resolve ::1

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

  New Revision: 60736

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60736

  Log:
    .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/

  Modified files:
    trunk/.travis.yml
Index: .travis.yml
===================================================================
--- .travis.yml	(revision 60735)
+++ .travis.yml	(revision 60736)
@@ -19,7 +19,7 @@ https://github.com/ruby/ruby/blob/trunk/.travis.yml#L19
 language: c
 dist: trusty
 
-sudo: false
+sudo: required
 
 compiler:
   - gcc

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]