about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2017-12-22 03:14:21 +0800
committerkennytm <kennytm@gmail.com>2017-12-23 18:12:01 +0800
commit8d76e281bf3169e76a0f6db54a3a9b83e24a3b6f (patch)
tree74ccdc9b478eb2d14dc6d4883871b7ac0b8bb1c5
parent2352a888a19b0b4a8d666dc2a5732624b6e9a04e (diff)
downloadrust-8d76e281bf3169e76a0f6db54a3a9b83e24a3b6f.tar.gz
rust-8d76e281bf3169e76a0f6db54a3a9b83e24a3b6f.zip
Enable IPv6 support in Dockers to workaround travis-ci/travis-ci#8891.
-rw-r--r--.travis.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 93c2834b7d8..4458cd222f2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -190,6 +190,13 @@ env:
 before_install:
   - zcat $HOME/docker/rust-ci.tar.gz | docker load || true
   - mkdir -p $HOME/rustsrc
+  # FIXME(#46924): these two commands are required to enable IPv6,
+  # they shouldn't exist, please revert once more official solutions appeared.
+  # see https://github.com/travis-ci/travis-ci/issues/8891#issuecomment-353403729
+  - if [ "$TRAVIS_OS_NAME" = linux ]; then
+      echo '{"ipv6":true,"fixed-cidr-v6":"fe80::/64"}' | sudo tee /etc/docker/daemon.json;
+      sudo service docker restart;
+    fi
 
 install:
   - case "$TRAVIS_OS_NAME" in