Skip to content

Commit

Permalink
Sometimes we should turn off IPv6
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed May 22, 2017
1 parent 812ad55 commit 8aed038
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ matrix:
env: TOXENV=txchecker-travis-required
- python: 3.5
env: TOXENV=txchecker-travis-all
# We need a builder without IPv6. This is going to be slower than all the
# others, but that's ok.
- python: 3.5
env: TOXENV=py35-alldeps-withcov-posix,codecov-publish DISABLE_IPV6=yes
sudo: true
allow_failures:
- env: TOXENV=txchecker-travis-all
- env: TOXENV=pyflakes3
Expand Down
8 changes: 8 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then
fi
fi

# We need to test on machines that do not have IPv6, because this is a
# supported configuration and we've broken our tests for this in the past.
# See https://twistedmatrix.com/trac/ticket/9144
if [[ "${DISABLE_IPV6}" = "yes" ]]; then
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
fi

# Temporary workaround for https://github.com/pypa/setuptools/issues/776;
# install (and thereby cache a built wheel of) cryptography. (NB: We're
# already using the same Python version in this venv as in the test env,
Expand Down

0 comments on commit 8aed038

Please sign in to comment.