language: bash
services: docker

env:
  - VERSION=5 VARIANT=
  - VERSION=5 VARIANT=alpine
  - VERSION=2.4 VARIANT=
  - VERSION=2.4 VARIANT=alpine

install:
  - git clone https://github.com/docker-library/official-images.git ~/official-images

before_script:
  - env | sort
  - cd "$VERSION"
  - image="logstash:${VERSION}${VARIANT:+-$VARIANT}"

script:
  - travis_retry docker build -t "$image" "${VARIANT:-.}"
  - ~/official-images/test/run.sh "$image"

after_script:
  - docker images

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

language: bash
services: docker

env:
  - VERSION=5 VARIANT=
  - VERSION=5 VARIANT=alpine
  - VERSION=2.4 VARIANT=
  - VERSION=2.4 VARIANT=alpine

install:
  - git clone https://github.com/docker-library/official-images.git ~/official-images

before_script:
  - env | sort
  - wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
  - cd "$VERSION/$VARIANT"
  - image="logstash:${VERSION}${VARIANT:+-$VARIANT}"

script:
  - |
    (
      set -Eeuo pipefail
      set -x
      docker build -t "$image" .
      ~/official-images/test/run.sh "$image"
    )

after_script:
  - docker images

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

Add "pgp-happy-eyeballs" in Travis to help cut down on gpg-related issues
Add "pgp-happy-eyeballs" in Travis to help cut down on gpg-related issues
