language: node_js

node_js:
  - '0.10'
  - '0.9'

env:
  global:
    - CI_HOME=`pwd`/denkmap/denkmap

script: $CI_HOME/scripts/build.sh

before_script:
  - wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
  - export PATH="$PATH:$CI_HOME:/usr/local/heroku/bin"

before_deploy: $CI_HOME/scripts/deploy_heroku.sh

deploy:
  provider: heroku
  skip_cleanup: true
  api_key:
    secure: dXd4p/6phPPpKed1sf/s2P++MLkLZgF+NyzNjcmoZRB+GFdSyDhtPqO08e40JGVL+pbdlGyto1U66BAF0aOFux9XxPYCeZ6l3KzqzWOso0hWnHfwrGWNS11/IkPimYMdvRO8D+2YcEquVpeRX+mhum9TRoUdlWcLbTF0v1yulek=
  app: denkmap
  on:
    branch: master
    repo: denkmap/denkmap
    node: '0.10'

language: node_js

node_js:
  - '0.10'
  - '0.9'

env:
  global:
    - CI_HOME=`pwd`/denkmap/denkmap

script: $CI_HOME/scripts/build.sh

before_script:
  - wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
  - export PATH="$PATH:$CI_HOME:/usr/local/heroku/bin"

before_deploy: $CI_HOME/scripts/deploy_heroku.sh

deploy:
  provider: heroku
  skip_cleanup: true
  api_key:
    secure: dXd4p/6phPPpKed1sf/s2P++MLkLZgF+NyzNjcmoZRB+GFdSyDhtPqO08e40JGVL+pbdlGyto1U66BAF0aOFux9XxPYCeZ6l3KzqzWOso0hWnHfwrGWNS11/IkPimYMdvRO8D+2YcEquVpeRX+mhum9TRoUdlWcLbTF0v1yulek=
  app:
    master: denkmap
    develop: denkmap-dev
  on:
    repo: denkmap/denkmap
    node: '0.10'

Deploy master to 'denkmap' and develop to 'denkmap-dev'
Deploy master to 'denkmap' and develop to 'denkmap-dev'
