release: fix PR detection for appveyor

This commit is contained in:
Aldo Cortesi 2018-03-08 09:52:05 +13:00
parent 3a3299bc61
commit 0debcf5bf9

View File

@ -217,7 +217,9 @@ def build():
def is_pr():
if os.environ.get("TRAVIS_PULL_REQUEST") != "false":
if "TRAVIS_PULL_REQUEST" in os.environ:
if os.environ["TRAVIS_PULL_REQUEST"] == "false":
return False
return True
elif os.environ.get("APPVEYOR_PULL_REQUEST_NUMBER"):
return True