machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker pull thewtex/itkultrasound-base

test:
  override:
    - mkdir ~/ITKUltrasound-build
    - docker run -v ~/ITKUltrasound:/usr/src/ITKUltrasound -v ~/ITKUltrasound-build:/usr/src/ITKUltrasound-build thewtex/itkultrasound-base /usr/src/ITKUltrasound/test/Docker/test.sh
    - mv ~/ITKUltrasound-build/Testing/Temporary/* $CIRCLE_ARTIFACTS/

machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker pull thewtex/itkultrasound-base

test:
  override:
    - mkdir ~/ITKUltrasound-build
    - docker run -v ~/ITKUltrasound:/usr/src/ITKUltrasound -v ~/ITKUltrasound-build:/usr/src/ITKUltrasound-build thewtex/itkultrasound-base /usr/src/ITKUltrasound/test/Docker/test.sh
    - cp -r ~/ITKUltrasound-build/Testing/Temporary/* $CIRCLE_ARTIFACTS/

Copy instead of move the build artifacts.
BUG: Copy instead of move the build artifacts.

For permission denied errors.
