machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker pull insighttoolkit/minimalpathextraction-test
    - ~/ITKMinimalPathExtraction/test/Docker/build.sh

test:
  override:
    - mkdir ~/ITKMinimialPathExtraction-build
    - docker run -v ~/ITKMinimalPathExtraction:/usr/src/ITKMinimalPathExtraction -v ~/ITKMinimalPathExtraction-build:/usr/src/ITKMinimalPathExtraction-build insighttoolkit/minimalpathextraction-test /usr/src/ITKMinimalPathExtraction/test/Docker/test.sh


machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker pull insighttoolkit/minimalpathextraction-test
    - ~/ITKMinimalPathExtraction/test/Docker/build.sh

test:
  override:
    - mkdir ~/ITKMinimialPathExtraction-build
    - docker run -v ~/ITKMinimalPathExtraction:/usr/src/ITKMinimalPathExtraction -v ~/ITKMinimalPathExtraction-build:/usr/src/ITKMinimalPathExtraction-build insighttoolkit/minimalpathextraction-test /usr/src/ITKMinimalPathExtraction/test/Docker/test.sh

deployment:
  hub:
    branch: master
    commands:
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push insighttoolkit/minimalpathextraction-test

Add Docker image deployment step to CircleCI config
ENH: Add Docker image deployment step to CircleCI config
