Browse Source

Travis CI: Try to activate IPv6 loopback

Try some linux hack to get IPv6 localhost running, see
https://github.com/travis-ci/travis-ci/issues/8361#issuecomment-344798804
bel2125 7 years ago
parent
commit
6231c27de5
1 changed files with 7 additions and 1 deletions
  1. 7 1
      .travis.yml

+ 7 - 1
.travis.yml

@@ -56,7 +56,13 @@ before_script:
   # Check some settings of the build server (operating system, IPv6 availability, directory)
   - uname -a
   - ifconfig
-  - cat /etc/sysctl.conf
+  - cat /etc/network/interfaces
+  - if [[ "${ENABLE_IPV6}" == "YES" ]]; then 
+      sudo echo "iface lo inet6 loopback" >> /etc/network/interfaces;
+      cat /etc/network/interfaces;
+      sudo /etc/init.d/networking restart;
+      ifconfig;
+    fi
   - pwd
   - ls -la
   - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then