From ed0f7b96fe37f08b2ac530984b1014f2c7b1e9a1 Mon Sep 17 00:00:00 2001
From: squidfunk <martin.donath@squidfunk.com>
Date: Thu, 6 Apr 2017 23:51:41 +0200
Subject: [PATCH] Don't deploy documentation on PR

---
 scripts/travis | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/travis b/scripts/travis
index 06529478..036994c1 100755
--- a/scripts/travis
+++ b/scripts/travis
@@ -25,7 +25,7 @@ yarn run build
 [ $? -gt 0 ] && exit 1
 
 # Deploy documentation to GitHub pages
-if [[ "$TRAVIS_BRANCH" == "master" ]]; then
+if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then
   REMOTE="https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material"
 
   # Set configuration for repository and deploy documentation
-- 
GitLab