language: node_js
node_js:
- 'node'
script: gulp release
after_success:
- bash ./deploy.sh
branches:
  only: master

language: node_js
node_js:
- 'node'
script: gulp release
after_success:
  - test $TRAVIS_BRANCH = "master" && bash ./deploy.sh

Build all branches but deploy only master branch
Build all branches but deploy only master branch
