after_script:
  - docker images

before_script:
  - cd "$VERSION"
  - IMAGE="bitcoind:$VERSION"

env:
  - VERSION=0.13
  - VERSION=0.13/alpine
  - VERSION=0.12
  - VERSION=0.12/alpine
  - VERSION=0.11
  - VERSION=0.11/alpine

language: bash

script:
  - docker build -t "$IMAGE" .
  - docker run "$IMAGE" --version | grep "Bitcoin Core"

services: docker

after_script:
  - docker images

before_script:
  - cd "$VERSION"
  - IMAGE="bitcoind:${VERSION/\//-}"

env:
  - VERSION=0.13
  - VERSION=0.13/alpine
  - VERSION=0.12
  - VERSION=0.12/alpine
  - VERSION=0.11
  - VERSION=0.11/alpine

language: bash

script:
  - docker build -t "$IMAGE" .
  - docker run "$IMAGE" --version | grep "Bitcoin Core"

services: docker

Update image format for docker 1.12 due to new restrictions
Update image format for docker 1.12 due to new restrictions
