#!/bin/bash

set -e

if [ -z ${TRAVIS} ]; then
  exit 0
fi

if [ "${SKIP_DEPLOY}" = "true" ] && [ "${REQUIRE_KEY}" != "true" ]; then
  exit 0
fi

if [ -z ${DEPLOY_KEY} ] && [ -e '.deploy_key.enc' ]; then
  eval ${1}
fi

#!/bin/bash

set -e

if [ -z ${TRAVIS} ]; then
  exit 0
fi

if [ "${TRAVIS_PULL_REQUEST}" = "true" ]; then
  exit 0
fi

if [ "${SKIP_DEPLOY}" = "true" ] && [ "${REQUIRE_KEY}" != "true" ]; then
  exit 0
fi

if [ -z ${DEPLOY_KEY} ] && [ -e '.deploy_key.enc' ]; then
  eval ${1}
fi

Add pull request condition in .travis.sh
Add pull request condition in .travis.sh
