diff --git a/deploy.sh b/deploy.sh index 6bebf0c2..5b68505c 100644 --- a/deploy.sh +++ b/deploy.sh @@ -9,7 +9,7 @@ function doCompile { } # Pull requests and commits to other branches shouldn't try to deploy, just build to verify -if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then +if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then echo "Skipping deploy; just doing a build." doCompile exit 0