Don't deploy non-master branches to Files branch

This commit is contained in:
tritoch
2017-06-21 09:25:04 -05:00
committed by GitHub
parent 09b8db64aa
commit 3f83451020

View File

@@ -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