machine:
  pre:
   - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
  services:
    - docker

dependencies:
  override:
    - sudo pip install docker-compose==1.8.0

test:
  override:
    - make docker_test

deployment:
  heroku:
    branch: master
    commands:
      - docker login --email=$HEROKU_EMAIL --username=$HEROKU_EMAIL --password=$HEROKU_API_KEY registry.heroku.com
      - docker push registry.heroku.com/directory-ui-dev/web

machine:
  pre:
   - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
  services:
    - docker

dependencies:
  override:
    - sudo pip install docker-compose==1.8.0

test:
  override:
    - make docker_test

deployment:
  dev:
    branch: master
    commands:
      - docker login --email=$HEROKU_EMAIL --username=$HEROKU_EMAIL --password=$HEROKU_API_KEY registry.heroku.com
      - docker build -t registry.heroku.com/directory-ui-dev/web .
      - docker push registry.heroku.com/directory-ui-dev/web

Add building docker before deployment to heroku dev env
Add building docker before deployment to heroku dev env
