Fix IPv6 in Travis

This commit is contained in:
Alex 2018-01-14 13:34:30 +01:00
parent f0ada14136
commit 1cd922e3bb

View File

@ -3,4 +3,9 @@ sudo: false
node_js:
- "node"
before_script:
# Add an IPv6 config - see the corresponding Travis issue
# https://github.com/travis-ci/travis-ci/issues/8361
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start