sudo: required
services:
  - docker
before_install:
  - gem install bundler
install:
  - make test-deps
script:
  - sed -i "s/172\.17\.0\.1/$(docker run debian:jessie ip route | sed -n 's/^default via \(.*\) dev .*/\1/p')/" spec/test_cluster.rb
  - make docker-compose
  - make test

sudo: required
services:
  - docker
before_install:
  - gem install bundler
install:
  - make test-deps
script:
  - sed -i "s/172\.17\.0\.1/$(docker run debian:jessie ip route | sed -n 's/^default via \(.*\) dev .*/\1/p')/" spec/test_cluster.rb
  - make docker-compose
  - make test 2>make-test.err
after_failure:
  - "echo Tests failed, stderr was:"
  - cat make-test.err

Hide stderr on Travis unless build failed
Hide stderr on Travis unless build failed
