From 0debcf5bf92b71e58ad723629e35b7f5a3393656 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 8 Mar 2018 09:52:05 +1300 Subject: [PATCH] release: fix PR detection for appveyor --- release/ci.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/release/ci.py b/release/ci.py index eaabaf3a0..94b1f13d5 100755 --- a/release/ci.py +++ b/release/ci.py @@ -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