machine:
  services:
    - docker

dependencies:
  cache_directories:
    - "~/scratch"
    - "~/downloads/"
    - "~/docker"

  pre:
    # Download test data
    - bash build/circle_setup.sh
  override:
    - if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; fi
    - docker info
    - docker pull oesteban/crn_nipype
    - mkdir -p ~/docker; docker save oesteban/crn_nipype > ~/docker/image.tar
    - docker build -t oesteban/mriqc .
test:
  override:
    # Test mriqcp
    - bash build/circle_tests.sh:
        parallel: true

general:
  artifacts:
    #- "~/scratch/outputs/ss-all/out"
    #- "~/scratch/outputs/ss-all/work"
    - "~/scratch/outputs/ms-func/out"
    - "~/scratch/outputs/ms-func/work"
    - "~/scratch/outputs/ms-anat/out"
    - "~/scratch/outputs/ms-anat/work"

deployment:
  codecov:
    branch: /.*/
    commands:
      - bash <(curl -s https://codecov.io/bash)

machine:
  services:
    - docker

dependencies:
  cache_directories:
    - "~/scratch"
    - "~/downloads/"
    - "~/docker"

  pre:
    # Download test data
    - bash build/circle_setup.sh
  override:
    - if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; fi
    - docker info
    - docker pull oesteban/crn_nipype
    - mkdir -p ~/docker; docker save oesteban/crn_nipype > ~/docker/image.tar
    - docker build -t oesteban/mriqc .
test:
  override:
    # Test mriqcp
    - bash build/circle_tests.sh:
        parallel: true

general:
  artifacts:
    #- "~/scratch/outputs/ss-all/out"
    #- "~/scratch/outputs/ss-all/work"
    - "~/scratch/outputs/ms-func/out"
    - "~/scratch/outputs/ms-func/work"
    - "~/scratch/outputs/ms-anat/out"
    - "~/scratch/outputs/ms-anat/work"

# deployment:
#   codecov:
#     branch: /.*/
#     commands:
#       - bash <(curl -s https://codecov.io/bash)

Disable codecov until it works
Disable codecov until it works