I'm embarrassed to have to write something like this in 2016, but it appears the new Travis servers with Ubuntu Trusty have no support for IPv6 (not even localhost!). Thus this pull checks for IPv6 and skips the IPv6 tests if the environment is lacking it.
As we need trusty support for c++11 at some point, we'll need this.
Ref: