dependencies:
  cache_directories:
    - "~/.stack"
  pre:
    - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
    - echo 'deb http://download.fpcomplete.com/ubuntu precise main'|sudo tee /etc/apt/sources.list.d/fpco.list
    - sudo apt-get update && sudo apt-get install stack -y
  override:
    - stack setup
    - stack build
  post:
    - ./deployment/keter-bundle.sh
    - cp zoomhub.keter $CIRCLE_ARTIFACTS

test:
  override:
    - stack test

deployment:
  development:
    # During development, deploy all branches. Restrict to `master` once
    # we are further along:
    branch: /.*/
    commands:
      - ./deployment/deploy.sh

dependencies:
  cache_directories:
    - "~/.stack"
  pre:
    - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 575159689BEFB442
    - echo 'deb http://download.fpcomplete.com/ubuntu precise main'|sudo tee /etc/apt/sources.list.d/fpco.list
    - sudo apt-get update && sudo apt-get install stack -y
  override:
    - stack setup
    - stack build
  post:
    - ./deployment/keter-bundle.sh
    - cp zoomhub.keter $CIRCLE_ARTIFACTS

test:
  override:
    - stack test

deployment:
  development:
    # During development, deploy all branches. Restrict to `master` once
    # we are further along:
    branch: /.*/
    commands:
      - ./deployment/deploy.sh

notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/5b83f4ce9cca865c832c

Add Gitter.im notification through CircleCI
Add Gitter.im notification through CircleCI
