diff options
author | Jan Wagner <waja@cyconet.org> | 2015-10-20 18:44:13 +0200 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2015-10-21 17:06:08 +0200 |
commit | 02571db88f1d7bf983435fde2a7f70b1b9cfe40e (patch) | |
tree | ea9d7808f47ddeac978fb43a38e5b40bbbbff306 | |
parent | 51d384b2cd4a2c1edf8d97c7c16576b4d4d9da42 (diff) | |
download | monitoring-plugins-02571db.tar.gz |
travis-ci: Work around broken /etc/hosts on trusty env
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index d0daf22e..c55beb35 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -3,7 +3,11 @@ dist: trusty | |||
3 | language: c | 3 | language: c |
4 | 4 | ||
5 | before_install: | 5 | before_install: |
6 | # Trusty related fixed | ||
7 | # multiverse is no on trusty activated (https://github.com/travis-ci/travis-ci/issues/4979) | ||
6 | - 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" | 8 | - 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" |
9 | # /etc/hosts has IPv6 hosts (https://github.com/travis-ci/travis-ci/issues/4978) | ||
10 | - sudo [ $(ip addr show | grep "inet6 ::1" | wc -l) -lt "1" ] && sudo sed -i '/^::1/d' /etc/hosts | ||
7 | - sudo apt-get update -qq | 11 | - sudo apt-get update -qq |
8 | - sudo apt-get purge -qq gawk | 12 | - sudo apt-get purge -qq gawk |
9 | # http://docs.travis-ci.com/user/trusty-ci-environment/ indicates, no MySQL on Trusty (yet) | 13 | # http://docs.travis-ci.com/user/trusty-ci-environment/ indicates, no MySQL on Trusty (yet) |