machine:
  pre:
  # Upgrade docker
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
  # upgrade compose
    - sudo pip install --upgrade docker-compose

  services:
    - docker

dependencies:
  override:
    - docker build -t notary_client .

test:
  override:
  # circleci only supports manual parellism
    - buildscripts/circle_parallelism.sh:
        parallel: true
        timeout: 600
  post:
    - docker-compose -f docker-compose.yml down -v
    - docker-compose -f docker-compose.rethink.yml down -v
