machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker pull insighttoolkit/morphologicalcontourinterpolation-test
    - ~/ITKMorphologicalContourInterpolation/test/Docker/build.sh

test:
  override:
    - mkdir ~/ITKMorphologicalContourInterpolation-build
    - docker run -v ~/ITKMorphologicalContourInterpolation:/usr/src/ITKMorphologicalContourInterpolation -v ~/ITKMorphologicalContourInterpolation-build:/usr/src/ITKMorphologicalContourInterpolation-build insighttoolkit/morphologicalcontourinterpolation-test /usr/src/ITKMorphologicalContourInterpolation/test/Docker/test.sh

machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker pull insighttoolkit/morphologicalcontourinterpolation-test
    - ~/ITKMorphologicalContourInterpolation/test/Docker/build.sh

test:
  override:
    - mkdir ~/ITKMorphologicalContourInterpolation-build
    - docker run -v ~/ITKMorphologicalContourInterpolation:/usr/src/ITKMorphologicalContourInterpolation -v ~/ITKMorphologicalContourInterpolation-build:/usr/src/ITKMorphologicalContourInterpolation-build insighttoolkit/morphologicalcontourinterpolation-test /usr/src/ITKMorphologicalContourInterpolation/test/Docker/test.sh

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

Add CircleCI / Docker test image deployment step.
ENH: Add CircleCI / Docker test image deployment step.
