mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
[3.7] Add short-circuit for doc changes to AppVeyor (GH-5626)
(cherry picked from commit 28607e0dd9
)
This commit is contained in:
parent
fe61e8d8c7
commit
40f7d9a06e
1 changed files with 19 additions and 3 deletions
16
.github/appveyor.yml
vendored
16
.github/appveyor.yml
vendored
|
@ -7,6 +7,22 @@ branches:
|
||||||
- buildbot-custom
|
- buildbot-custom
|
||||||
cache:
|
cache:
|
||||||
- externals -> PCbuild\*
|
- 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:
|
build_script:
|
||||||
- cmd: PCbuild\build.bat -e
|
- cmd: PCbuild\build.bat -e
|
||||||
- cmd: PCbuild\win32\python.exe -m test.pythoninfo
|
- cmd: PCbuild\win32\python.exe -m test.pythoninfo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue