[2.7] Only run AppVeyor on long-lived branches (GH-1941)

Also on the short-lived `buildbot-custom` branch.
(cherry picked from commit d3bedf356aca04ed9135a84b08)
diff --git a/.github/appveyor.yml b/.github/appveyor.yml
index 56ef344..fc325e5 100644
--- a/.github/appveyor.yml
+++ b/.github/appveyor.yml
@@ -1,5 +1,10 @@
 version: 2.7.13+.{build}
 clone_depth: 5
+branches:
+  only:
+    - master
+    - /\d\.\d/
+    - buildbot-custom
 build_script:
 - cmd: PCbuild\build.bat -e
 test_script: