Skip to content

Commit

Permalink
Merge pull request #51 from jnpkrn/fix-travis-loopback
Browse files Browse the repository at this point in the history
CI: travis: workaround 127.0.1.1 not assigned with loopback
  • Loading branch information
dmuhamedagic authored Sep 21, 2016
2 parents da3bba2 + b55bb80 commit b270a78
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ env:
- GLUE=0

before_install:
# following command is so as to counterweight unfortunate change
# https://github.com/travis-ci/travis-cookbooks/commit/6c575d5d55c08e3a0c046dc7de2aa5d5b38e0b63
# that made proper hostnames be mapped from 127.0.1.1 address
# rather than 127.0.0.1 (properly assigned to loopback interface),
# hence (likely) caused "hostname -i" return that other address
# that is normally not assigned to loopback (and hence booth
# cannot identify "itself" within configured sites, leading to
# spurious test suite failure) so do that manually as a workaround
- sudo ip addr add 127.0.1.1/8 scope host dev lo
- sudo apt-get update -qq
- sudo apt-get install -qq -y libglib2.0-dev libcrmcluster4-dev
- test "${GLUE}" = 0
Expand Down

0 comments on commit b270a78

Please sign in to comment.