general:
  branches:
    ignore:
      - gh-pages
machine:
  node:
    version: 4.2.2
  post:
    - npm i -g npm@3.x.x
test:
  override:
    - npm run build
    - npm test
deployment:
  doc:
    branch: dev
    commands:
      - ./build/gh-pages.sh

general:
  branches:
    ignore:
      - gh-pages
machine:
  node:
    version: 4.2.2
  post:
    - npm i -g npm@3.x.x
test:
  override:
    - npm run build
    - npm test
deployment:
  doc:
    branch: master
    commands:
      - ./build/gh-pages.sh

Set watching branch for documentation to master
Set watching branch for documentation to master
