aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jan Wagner <waja@cyconet.org> 2015-10-20 18:44:13 +0200
committerGravatar Jan Wagner <waja@cyconet.org> 2015-10-20 18:44:13 +0200
commit20d8799fb0415a720f5ffe50d647b3ba0bcc503f (patch)
treeb7c9f735fe2197f2cc1c2c249d492ac10292e723
parent079ab8a658d89a4632f3fb1745c5aaffaad81afb (diff)
downloadmonitoring-plugins-20d8799fb0415a720f5ffe50d647b3ba0bcc503f.tar.gz
travis-ci: Work around broken /etc/hosts on trusty env
-rw-r--r--.travis.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index b4aab017..96ba2c05 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,7 +3,11 @@ dist: trusty
language: c
before_install:
+ # Trusty related fixed
+ # multiverse is no on trusty activated (https://github.com/travis-ci/travis-ci/issues/4979)
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty multiverse" && sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse"
+ # /etc/hosts has IPv6 hosts (https://github.com/travis-ci/travis-ci/issues/4978)
+ - sudo [ $(ip addr show | grep "inet6 ::1" | wc -l) -lt "1" ] && sudo sed -i '/^::1/d' /etc/hosts
- sudo apt-get update -qq
- sudo apt-get purge -qq gawk
# http://docs.travis-ci.com/user/trusty-ci-environment/ indicates, no MySQL on Trusty (yet)