Merge pull request #249 from alxhotel/fix-travis-ipv6

Fix IPv6 in Travis
This commit is contained in:
Diego Rodríguez Baquero 2018-01-15 09:47:50 -05:00 committed by GitHub
commit 310ef462bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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