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
      - make heroku_deploy_dev

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
      - make heroku_deploy_dev
  demo:
    branch: demo
    commands:
      - docker login --email=$HEROKU_EMAIL --username=$HEROKU_EMAIL --password=$HEROKU_API_KEY registry.heroku.com
      - make heroku_deploy_demo

Add deploying to demo env on demo branch merge
Add deploying to demo env on demo branch merge
