language: bash
services: docker

env:
  - VARIANT=alpine
  - VARIANT=debian

script:
  - travis_retry docker build -t syslog-init:${VARIANT} -f Dockerfile.${VARIANT} .
  - docker run -i --rm syslog-init:${VARIANT} sh -c 'logger -t loggin foo bar && sleep 0.5'

# vim:set et ts=2 sw=2:

language: bash
services: docker

env:
  - VARIANT=alpine
  - VARIANT=debian

script:
  - |
    travis_retry docker build -t syslog-init:${VARIANT} -f Dockerfile.${VARIANT} .
    out="$(docker run -i --rm syslog-init:${VARIANT} sh -c 'logger -t loggin foo bar && sleep 0.5')"
    exp='loggin: foo bar'
    [ "$out" = "$exp" ]

# vim:set et ts=2 sw=2:

Update Travis to check that output is correct
Update Travis to check that output is correct
