Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add short-circuit for doc changes to AppVeyor
  • Loading branch information
zware authored Feb 3, 2018
commit 32946f03a4023dbb7f44a892d4906ef4e7c35a8a
21 changes: 18 additions & 3 deletions .github/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,26 @@ branches:
- buildbot-custom
cache:
- externals -> PCbuild\*
before_build:
- ps: |+
if ($env:APPVEYOR_RE_BUILD) {
# If we were explicitly told to rebuild, do a full build
} elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
# It's not a pull request, do a full build
} else {
$mergebase = git merge-base $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT $env:APPVEYOR_REPO_BRANCH
If (git diff --name-only $mergebase | grep -qvE '(\.rst$)|(^Doc)|(^Misc)') {
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:
Expand Down