language: bash
services: docker

env:
  - VERSION=9-jre
  - VERSION=9-jdk
  - VERSION=8-jre
  - VERSION=8-jre VARIANT=alpine
  - VERSION=8-jdk
  - VERSION=8-jdk VARIANT=alpine
  - VERSION=7-jre
  - VERSION=7-jre VARIANT=alpine
  - VERSION=7-jdk
  - VERSION=7-jdk VARIANT=alpine
  - VERSION=6-jre
  - VERSION=6-jdk

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

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

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

after_script:
  - docker images

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

language: bash
services: docker

env:
  - VERSION=9-jre
  - VERSION=9-jdk
  - VERSION=8-jre
  - VERSION=8-jre VARIANT=alpine
  - VERSION=8-jdk
  - VERSION=8-jdk VARIANT=alpine
  - VERSION=7-jre
  - VERSION=7-jre VARIANT=alpine
  - VERSION=7-jdk
  - VERSION=7-jdk VARIANT=alpine
  - VERSION=6-jre
  - VERSION=6-jdk

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

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

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

after_script:
  - docker images

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

Rename Travis-built images to be "openjdk:..." instead of "java:..."
Rename Travis-built images to be "openjdk:..." instead of "java:..."
