machine:
  services:
    - docker
  post:
    # circle instance already run postgresql
    - sudo service postgresql stop

dependencies:

  cache_directories:
    - "~/docker"

  override:
    - docker info
    - docker build -t nicgirault/scrumble-api api
    - docker-compose --file docker-compose.build.yml up appbuilder
    - docker build -t nicgirault/scrumble client

test:
  override:
    - docker-compose -f docker-compose.circle.yml run --rm apitest
    - docker-compose -f docker-compose.circle.yml run --rm apptest

machine:
  services:
    - docker
  post:
    # circle instance already run postgresql
    - sudo service postgresql stop

dependencies:

  cache_directories:
    - "~/docker"

  override:
    - docker info
    - docker build -t nicgirault/scrumble-api api
    - docker-compose --file docker-compose.build.yml up appbuilder
    - docker build -t nicgirault/scrumble client

test:
  override:
    - docker-compose -f docker-compose.circle.yml run apitest
    - docker-compose -f docker-compose.circle.yml run apptest

Disable image deletion at the end of tests
Disable image deletion at the end of tests
