summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2018-02-11 17:19:51 (GMT)
committerGitHub <noreply@github.com>2018-02-11 17:19:51 (GMT)
commit28607e0dd9417ce44a109980ffd60697c1afdea0 (patch)
tree83609dd404f34078357c081302db91479a2a0732 /.github
parent310b05289b5d9550040f469e60b5e8e77f1022b6 (diff)
downloadcpython-28607e0dd9417ce44a109980ffd60697c1afdea0.zip
cpython-28607e0dd9417ce44a109980ffd60697c1afdea0.tar.gz
cpython-28607e0dd9417ce44a109980ffd60697c1afdea0.tar.bz2
Add short-circuit for doc changes to AppVeyor (GH-5519)
Diffstat (limited to '.github')
-rw-r--r--.github/appveyor.yml22
1 files changed, 19 insertions, 3 deletions
diff --git a/.github/appveyor.yml b/.github/appveyor.yml
index 129c119..5239d6c 100644
--- a/.github/appveyor.yml
+++ b/.github/appveyor.yml
@@ -7,11 +7,27 @@ branches:
- buildbot-custom
cache:
- externals -> PCbuild
+before_build:
+ - ps: |+
+ if ($env:APPVEYOR_RE_BUILD) {
+ echo 'Doing full build due to re-build request.'
+ } elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
+ echo 'Not a PR, doing full build.'
+ } else {
+ $mergebase = git merge-base $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT $env:APPVEYOR_REPO_BRANCH
+ $changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
+ If (!$changes) {
+ echo 'Only docs were updated, stopping build process.'
+ Exit-AppveyorBuild
+ }
+ }
+
+
build_script:
-- cmd: PCbuild\build.bat -e
-- cmd: PCbuild\win32\python.exe -m test.pythoninfo
+ - cmd: PCbuild\build.bat -e
+ - cmd: PCbuild\win32\python.exe -m test.pythoninfo
test_script:
-- cmd: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 --fail-env-changed -j0
+ - cmd: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 --fail-env-changed -j0
environment:
HOST_PYTHON: C:\Python36\python.exe
image: