Enable IPv6 support in Dockers to workaround travis-ci/travis-ci#8891.

This commit is contained in:
kennytm 2017-12-22 03:14:21 +08:00
parent 2352a888a1
commit 8d76e281bf
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C
1 changed files with 7 additions and 0 deletions

View File

@ -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