language: node_js
node_js:
  - 0.1
before_install:
  - npm install -g grunt-cli
install:
  - npm install
script:
  - grunt test

notifications:
  email: false

deploy:
  provider: heroku
  app: govuk-elements-test
  api_key:
    secure: MSMzniJpxcjP1jbsjqaAR/bU/FtGRrYYrrIekzaXNXtUiwNOsnd2MMMiBiuwzRaqHlEZzUkh70jyCuAoztnMzr5vAlwy9IW5BnGhacbDZsyFZ8AS1Z0Glq0l7q0nh1akCEVYhdGyABrc2NMaAqtaVovEbAfZYCrSX8Uu0CRbPfY=
  on: master

sudo: false

language: node_js
node_js:
  - 0.1
before_install:
  - npm install -g grunt-cli
install:
  - npm install
script:
  - grunt test

notifications:
  email: false

deploy:
  # Deploy master to staging (govuk-elements-test.herokuapp.com)
  - provider: heroku
    api_key:
        secure: MSMzniJpxcjP1jbsjqaAR/bU/FtGRrYYrrIekzaXNXtUiwNOsnd2MMMiBiuwzRaqHlEZzUkh70jyCuAoztnMzr5vAlwy9IW5BnGhacbDZsyFZ8AS1Z0Glq0l7q0nh1akCEVYhdGyABrc2NMaAqtaVovEbAfZYCrSX8Uu0CRbPfY=
    app: govuk-elements-test
    on: master
  # Deploy tagged build to production (govuk-elements.herokuapp.com)
  - provider: heroku
    api_key:
        secure: MSMzniJpxcjP1jbsjqaAR/bU/FtGRrYYrrIekzaXNXtUiwNOsnd2MMMiBiuwzRaqHlEZzUkh70jyCuAoztnMzr5vAlwy9IW5BnGhacbDZsyFZ8AS1Z0Glq0l7q0nh1akCEVYhdGyABrc2NMaAqtaVovEbAfZYCrSX8Uu0CRbPfY=
    app: govuk-elements
    on:
      all_branches: true
      tags: true

sudo: false

Split deploy for staging and production
Split deploy for staging and production

Deploy master to a test heroku app.

Deploy the most recent tagged build to production.
