|
@@ -51,6 +51,12 @@ install:
|
|
|
fi
|
|
|
|
|
|
before_script:
|
|
|
+ # Add an IPv6 config - see the corresponding Travis issue
|
|
|
+ # https://github.com/travis-ci/travis-ci/issues/8361
|
|
|
+ - if [ "${ENABLE_IPV6}" == "YES" -a "${TRAVIS_OS_NAME}" == "linux" ]; then
|
|
|
+ echo "Activating IPv6 on Travis";
|
|
|
+ sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
|
|
|
+ fi
|
|
|
# Check some settings of the build server (operating system, IPv6 availability, directory)
|
|
|
- uname -a
|
|
|
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
|
@@ -58,14 +64,6 @@ before_script:
|
|
|
cat /etc/network/interfaces;
|
|
|
fi
|
|
|
- ifconfig
|
|
|
- # Add an IPv6 config and restart network
|
|
|
- # https://askubuntu.com/questions/103171/editing-network-interfaces-without-system-rebooting
|
|
|
- # For some failed tests already done, see
|
|
|
- # https://github.com/travis-ci/travis-ci/issues/8361#issuecomment-345074513
|
|
|
- - if [[ "${ENABLE_IPV6}" == "YES" ]]; then
|
|
|
- echo "IPv6 on Travis may fail";
|
|
|
- sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
|
|
|
- fi
|
|
|
- pwd
|
|
|
- ls -la
|
|
|
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|