#!/bin/bash -e
set -o pipefail

echo "$TRAVIS_BRANCH"

if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]
then
  echo "Deploying!"
  bower i
  npm run compile-all
  cp CNAME dist
  cd dist
  git init
  git add .
  git commit -m "deploy"
  git push --force --quiet "https://${GH_TOKEN}@github.com/marionettejs/marionettejs.com.git" master:gh-pages > /dev/null 2>&1
else
  npm run lint && npm run test && npm run pagespeed
fi

#!/bin/bash -e
set -o pipefail

echo "$TRAVIS_BRANCH"

if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]
then
  echo "Deploying!"
  bower i
  npm run compile-all
  cp CNAME dist
  cd dist
  git config --global user.email "travis@marionettejs.com"
  git config --global user.name "TRAVIS-CI"
  git init
  git add .
  git commit -m "deploy"
  git push --force --quiet "https://${GH_TOKEN}@github.com/marionettejs/marionettejs.com.git" master:gh-pages > /dev/null 2>&1
else
  npm run lint && npm run test && npm run pagespeed
fi

Add git email, name during deploy
Add git email, name during deploy