Commit 7c644897 authored by Alexey Spiridonov's avatar Alexey Spiridonov Committed by Facebook Github Bot

Enable IPv6 loopback for tests

Summary:
Unit tests using the IPv6 loopback would fail on Travis with `[::1]:0: Cannot assign requested address`.

The issue is discussed at length here: https://github.com/travis-ci/travis-ci/issues/8711

Reviewed By: jstrizich

Differential Revision: D6914321

fbshipit-source-id: c247c6760dddcd875a67f7b31419bde974514f19
parent d2604fb2
......@@ -3,6 +3,20 @@
sudo: required
# Docker disables IPv6 in containers by default. Enable it for unit tests that need [::1].
before_script:
# `daemon.json` is normally missing, but let's log it in case that changes.
- sudo touch /etc/docker/daemon.json
- sudo cat /etc/docker/daemon.json
- sudo service docker stop
# This needs YAML quoting because of the curly braces.
- 'echo ''{"ipv6": true, "fixed-cidr-v6": "2001:db8:1::/64"}'' | sudo tee /etc/docker/daemon.json'
- sudo service docker start
# Fail early if docker failed on start -- add `- sudo dockerd` to debug.
- sudo docker info
# Paranoia log: what if our config got overwritten?
- sudo cat /etc/docker/daemon.json
env:
global:
- travis_cache_dir=$HOME/travis_ccache
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment