[monitoring-plugins] travis-ci: Work around broken /etc/hosts on ...
Jan Wagner
git at monitoring-plugins.org
Wed Oct 21 17:10:11 CEST 2015
Module: monitoring-plugins
Branch: master
Commit: 20d8799fb0415a720f5ffe50d647b3ba0bcc503f
Author: Jan Wagner <waja at cyconet.org>
Date: Tue Oct 20 18:44:13 2015 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=20d8799
travis-ci: Work around broken /etc/hosts on trusty env
---
.travis.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.travis.yml b/.travis.yml
index b4aab01..96ba2c0 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)
More information about the Commits
mailing list