sudo: required

language: node_js
node_js:
  - "5"

services:
  - docker

after_success:
  # The following 2 lines are from https://graysonkoonce.com/getting-the-current-branch-name-during-a-pull-request-in-travis-ci/
  - export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
  - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
  - if [ "$BRANCH" == "master" ] then bash ./deploy.sh; fi
sudo: required

language: node_js
node_js:
  - "5"

services:
  - docker

after_success:
  # The following 2 lines are from https://graysonkoonce.com/getting-the-current-branch-name-during-a-pull-request-in-travis-ci/
  - export PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
  - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
  - if [ "$BRANCH" == "master" ]; then bash ./deploy.sh; fi
Fix Travis if then statement
Fix Travis if then statement
